OS X Tiger changes

This commit is contained in:
rsc 2005-05-07 22:41:59 +00:00
parent 857072dc11
commit bc7da02954
3 changed files with 20 additions and 6 deletions

View file

@ -72,8 +72,15 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
# include <sys/types.h> # include <sys/types.h>
# include <pthread.h> # include <pthread.h>
# define PLAN9PORT_USING_PTHREADS 1 # define PLAN9PORT_USING_PTHREADS 1
# undef _NEEDUSHORT # if __GNUC__ < 4
# undef _NEEDUINT # undef _NEEDUSHORT
# undef _NEEDUINT
# endif
# undef _ANSI_SOURCE
# undef _POSIX_C_SOURCE
# if !defined(NSIG)
# define NSIG 32
# endif
# define _NEEDLL 1 # define _NEEDLL 1
#elif defined(__NetBSD__) #elif defined(__NetBSD__)
# include <sched.h> # include <sched.h>
@ -131,10 +138,10 @@ typedef short s16int;
#define AUTOLIB(x) static int __p9l_autolib_ ## x = 1; #define AUTOLIB(x) static int __p9l_autolib_ ## x = 1;
/* /*
* Gcc 3 is too smart for its own good. * Gcc is too smart for its own good.
*/ */
#if defined(__GNUC__) && !defined(__APPLE_CC__) #if defined(__GNUC__)
# if __GNUC__ >= 3 # if __GNUC__ >= 4 || (__GNUC__==3 && !defined(__APPLE_CC__))
# undef AUTOLIB # undef AUTOLIB
# define AUTOLIB(x) int __p9l_autolib_ ## x __attribute__ ((weak)); # define AUTOLIB(x) int __p9l_autolib_ ## x __attribute__ ((weak));
# else # else

View file

@ -66,7 +66,9 @@ static Sig sigs[] = {
SIGVTALRM, 0, SIGVTALRM, 0,
SIGUSR1, 0, SIGUSR1, 0,
SIGUSR2, 0, SIGUSR2, 0,
#ifdef SIGWINCH
SIGWINCH, Restart|Ignore, SIGWINCH, Restart|Ignore,
#endif
#ifdef SIGINFO #ifdef SIGINFO
SIGINFO, Restart|Ignore, SIGINFO, Restart|Ignore,
#endif #endif

View file

@ -74,7 +74,12 @@ static int sigs[] =
SIGALRM, SIGTERM, SIGCHLD, SIGSTOP, SIGALRM, SIGTERM, SIGCHLD, SIGSTOP,
/*SIGTSTP, SIGTTIN, SIGTTOU,*/ SIGURG, /*SIGTSTP, SIGTTIN, SIGTTOU,*/ SIGURG,
SIGXCPU, SIGXFSZ, SIGVTALRM, SIGPROF, SIGXCPU, SIGXFSZ, SIGVTALRM, SIGPROF,
SIGWINCH, SIGIO, #ifdef SIGWINCH
SIGWINCH,
#endif
#ifdef SIGIO
SIGIO,
#endif
#ifdef SIGEMT #ifdef SIGEMT
SIGEMT, SIGEMT,
#endif #endif