mirror of
https://github.com/postgres/postgres.git
synced 2025-07-09 22:41:56 +03:00
to REL6_4 as well... Use autoconf to determine whether system has POSIX signals, instead of relying on port's os.h to tell us. (Needed for HPUX where system major version is not enough info.) configure unsets USE_TK if X libraries not found. doc/Makefile uses gzcat or zcat as found by autoconf.
37 lines
818 B
C
37 lines
818 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(PPC)
|
|
typedef unsigned int slock_t;
|
|
|
|
#elif defined(__alpha)
|
|
typedef long 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(PPC)
|
|
#undef HAVE_INT_TIMEZONE
|
|
#endif
|