linux.h 886 Bytes
Newer Older
1 2 3 4 5 6
/* __USE_POSIX, __USE_BSD, and __USE_BSD_SIGNAL used to be defined either
   here or with -D compile options, but __ macros should be set and used by C
   library macros, not Postgres code.  __USE_POSIX is set by features.h,
   __USE_BSD is set by bsd/signal.h, and __USE_BSD_SIGNAL appears not to
   be used.
*/
7 8 9 10
#define JMP_BUF
#define USE_POSIX_TIME
#define HAS_TEST_AND_SET

11 12 13 14
#if if defined(__i386__)
typedef unsigned char slock_t;

#elif defined(__powerpc__)
15
typedef unsigned int slock_t;
16

17
#elif defined(__alpha__)
Bruce Momjian's avatar
Bruce Momjian committed
18
typedef long int slock_t;
19

20
#elif defined(__mips__)
21 22
typedef unsigned int slock_t;

23 24
#endif

25
#if (__GLIBC__ >= 2)
26 27 28 29 30 31 32 33
#ifdef HAVE_INT_TIMEZONE
#undef HAVE_INT_TIMEZONE
#endif

 /*
  * currently undefined as I (teunis@computersupportcentre.com) have not
  * checked this yet
  */
34 35 36
/* #define HAVE_SIGSETJMP 1 */
#endif

37
#if defined(__powerpc__)
38 39
#undef HAVE_INT_TIMEZONE
#endif