The GCC developers have made good on their threats against #pragma for 3.1.
Use __weak_reference in place of the #pragma. Submitted by: eischen
This commit is contained in:
parent
938168982f
commit
2cae3ce3f1
@ -31,7 +31,7 @@
|
||||
#include <pthread.h>
|
||||
#include "pthread_private.h"
|
||||
|
||||
#pragma weak __cap_get_fd=___cap_get_fd
|
||||
__weak_reference(___cap_get_fd, __cap_get_fd);
|
||||
|
||||
int
|
||||
___cap_get_fd(int fd, struct cap *cap_p)
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <pthread.h>
|
||||
#include "pthread_private.h"
|
||||
|
||||
#pragma weak __cap_set_fd=___cap_set_fd
|
||||
__weak_reference(___cap_set_fd, __cap_set_fd);
|
||||
|
||||
int
|
||||
___cap_set_fd(int fd, cap_t cap_p)
|
||||
|
@ -31,10 +31,11 @@
|
||||
#include <pthread_np.h>
|
||||
#include "pthread_private.h"
|
||||
|
||||
__weak_reference(_pthread_main_np, pthread_main_np);
|
||||
|
||||
/*
|
||||
* Provide the equivelant to Solaris thr_main() function
|
||||
*/
|
||||
#pragma weak pthread_main_np=_pthread_main_np
|
||||
int
|
||||
_pthread_main_np()
|
||||
{
|
||||
|
@ -31,10 +31,11 @@
|
||||
#include <pthread_np.h>
|
||||
#include "pthread_private.h"
|
||||
|
||||
__weak_reference(_pthread_main_np, pthread_main_np);
|
||||
|
||||
/*
|
||||
* Provide the equivelant to Solaris thr_main() function
|
||||
*/
|
||||
#pragma weak pthread_main_np=_pthread_main_np
|
||||
int
|
||||
_pthread_main_np()
|
||||
{
|
||||
|
@ -31,10 +31,11 @@
|
||||
#include <pthread_np.h>
|
||||
#include "pthread_private.h"
|
||||
|
||||
__weak_reference(_pthread_main_np, pthread_main_np);
|
||||
|
||||
/*
|
||||
* Provide the equivelant to Solaris thr_main() function
|
||||
*/
|
||||
#pragma weak pthread_main_np=_pthread_main_np
|
||||
int
|
||||
_pthread_main_np()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user