Bruce Momjian aba8c12f67 We have tested the patches on three platforms:
NetBSD/macppc
LinuxPPC
FreeBSD 2.2.6-RELEASE

All of them seem happy with the regression test. Note that, however,
compiling with optimization enabled on NetBSD/macppc causes an initdb
failure (other two platforms are ok). After checking the asm code, we
are suspecting that might be a compiler(egcs) bug.

Tatsuo Ishii
1999-03-14 16:03:33 +00:00

40 lines
887 B
C

/* __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 HAS_TEST_AND_SET
#if defined(__powerpc__)
typedef unsigned int slock_t;
#elif defined(__alpha)
typedef long int slock_t;
#elif defined(__mips)
typedef unsigned int slock_t;
#else /* i386 probably */
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(__powerpc__)
#undef HAVE_INT_TIMEZONE
#endif