From 36c1c94bca30a730bec1bb9f5163ccfbb7565fed Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Sat, 17 Jan 1998 23:33:58 +0000 Subject: From: "Billy G. Allie" The attached patches will allow postgreSQL to compile successfully on SCO UNIXWARE 2.1.x. The patches fix the following problems: 1. Configure did not properly recognize the UNIXWARE system as needing the univel port. It used the sys4 port. 2. Configure did not properly process the CC flag in the template file. 3. There was no working test and set locking implementation for the native UNIXWARE compiler. 4. The test and set locking used for Intel X86 that was selected by defining NEED_I386_TAS_ASM could fail in a multi-processor environment. 5. The makefiles for libpq and libpgtcl did not make a shared library for the univel port. --- src/include/port/univel.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/include/port/univel.h') diff --git a/src/include/port/univel.h b/src/include/port/univel.h index 4acd2b1a752..3be6179f766 100644 --- a/src/include/port/univel.h +++ b/src/include/port/univel.h @@ -3,17 +3,14 @@ #define USE_POSIX_SIGNALS #define SYSV_DIRENT -#if 0 #define HAS_TEST_AND_SET +#define NEED_I386_TAS_ASM +#define USE_UNIVEL_CC_ASM /***************************************\ + | Define this if you are compiling with | + | the native UNIXWARE C compiler. | + \***************************************/ typedef unsigned char slock_t; -#endif - -extern long random(void); -extern void srandom(int seed); -extern int strcasecmp(char *s1, char *s2); -extern int gethostname(char *name, int namelen); - #ifndef BIG_ENDIAN #define BIG_ENDIAN 4321 #endif -- cgit v1.2.3