diff options
| author | kleink <kleink@NetBSD.org> | 2005-03-10 00:34:23 +0000 |
|---|---|---|
| committer | kleink <kleink@NetBSD.org> | 2005-03-10 00:34:23 +0000 |
| commit | ebf592f1e6d86a67ba7a22937d67934a692d07c4 (patch) | |
| tree | 688c57e6c9a9d6485b50193bf61781ae4dc3ed7d /lib/libpthread | |
| parent | 840f589aad011509e5c450465ef5f3d031e52838 (diff) | |
Move up the definition of __LIBC12_SOURCE__; since <poll.h> now includes
<sys/sigtypes.h> this is needed earlier.
Diffstat (limited to 'lib/libpthread')
| -rw-r--r-- | lib/libpthread/pthread_cancelstub.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/lib/libpthread/pthread_cancelstub.c b/lib/libpthread/pthread_cancelstub.c index 8dd92b7904d..727cc2548a2 100644 --- a/lib/libpthread/pthread_cancelstub.c +++ b/lib/libpthread/pthread_cancelstub.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_cancelstub.c,v 1.9 2004/05/21 17:15:42 kleink Exp $ */ +/* $NetBSD: pthread_cancelstub.c,v 1.10 2005/03/10 00:34:23 kleink Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread_cancelstub.c,v 1.9 2004/05/21 17:15:42 kleink Exp $"); +__RCSID("$NetBSD: pthread_cancelstub.c,v 1.10 2005/03/10 00:34:23 kleink Exp $"); /* * This is necessary because the fsync_range() name is always weak (it is @@ -45,6 +45,14 @@ __RCSID("$NetBSD: pthread_cancelstub.c,v 1.9 2004/05/21 17:15:42 kleink Exp $"); */ #define fsync_range _fsync_range +/* + * XXX this is necessary to get the prototypes for the __sigsuspend14 + * XXX and __msync13 internal names, instead of the application-visible + * XXX sigsuspend and msync names. It's kind of gross, but we're pretty + * XXX intimate with libc already. + */ +#define __LIBC12_SOURCE__ + #include <sys/msg.h> #include <sys/types.h> #include <sys/uio.h> @@ -54,15 +62,6 @@ __RCSID("$NetBSD: pthread_cancelstub.c,v 1.9 2004/05/21 17:15:42 kleink Exp $"); #include <stdarg.h> #include <unistd.h> -int pthread__cancel_stub_binder; - -/* - * XXX this is necessary to get the prototypes for the __sigsuspend14 - * XXX and __msync13 internal names, instead of the application-visible - * XXX sigsuspend and msync names. It's kind of gross, but we're pretty - * XXX intimate with libc already. - */ -#define __LIBC12_SOURCE__ #include <signal.h> #include <sys/mman.h> #include <sys/socket.h> @@ -70,6 +69,8 @@ int pthread__cancel_stub_binder; #include "pthread.h" #include "pthread_int.h" +int pthread__cancel_stub_binder; + int _sys_accept(int, struct sockaddr *, socklen_t *); int _sys_close(int); int _sys_connect(int, const struct sockaddr *, socklen_t); |
