aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/linux.h
blob: 727260a6d6e1e32427ec54c07eebe99cab6fee4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* __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.
*/
#define JMP_BUF
#define USE_POSIX_TIME
#define USE_POSIX_SIGNALS
#define NEED_I386_TAS_ASM
#define HAS_TEST_AND_SET

#if defined(PPC)
typedef unsigned int slock_t;
#elif defined(__alpha__)
typedef long int slock_t;
#else
typedef unsigned char slock_t;
#endif

#if (__GLIBC__ >= 2)
#  ifdef HAVE_INT_TIMEZONE
#    undef HAVE_INT_TIMEZONE
#  endif
   /* currently undefined as I (teunis@computersupportcentre.com) have not
      checked this yet */
/* #define HAVE_SIGSETJMP 1 */
#endif

#if defined(PPC)
#undef NEED_I386_TAS_ASM
#undef HAVE_INT_TIMEZONE
#endif

#if defined(sparc)
#undef NEED_I386_TAS_ASM
#endif

#if defined(__alpha__)
#undef NEED_I386_TAS_ASM
#endif