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:
obrien 2002-04-15 23:11:38 +00:00
parent 938168982f
commit 2cae3ce3f1
5 changed files with 8 additions and 5 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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()
{

View File

@ -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()
{

View File

@ -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()
{