aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/univel.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-01-17 23:33:58 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-01-17 23:33:58 +0000
commit36c1c94bca30a730bec1bb9f5163ccfbb7565fed (patch)
tree98c64f5e4985dc203b9ca30cfa062af8a485ce8d /src/include/port/univel.h
parent98c7cb11dea7f0f91662ae6d4ec1fd13b8f9e553 (diff)
downloadpostgresql-36c1c94bca30a730bec1bb9f5163ccfbb7565fed.tar.gz
postgresql-36c1c94bca30a730bec1bb9f5163ccfbb7565fed.zip
From: "Billy G. Allie" <Bill.Allie@mug.org>
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.
Diffstat (limited to 'src/include/port/univel.h')
-rw-r--r--src/include/port/univel.h13
1 files changed, 5 insertions, 8 deletions
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