aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/solaris_i386.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-06-19 02:55:19 +0000
committerBruce Momjian <bruce@momjian.us>1998-06-19 02:55:19 +0000
commit8ed5918faa21f26fe7c0c36487960e815ef6b108 (patch)
tree04b3c19ebce5e2052610a9139bee6e1cc959ba40 /src/include/port/solaris_i386.h
parentda1ac9ad25bc3cfc1b8b9feb63b9d5b1b1e64433 (diff)
downloadpostgresql-8ed5918faa21f26fe7c0c36487960e815ef6b108.tar.gz
postgresql-8ed5918faa21f26fe7c0c36487960e815ef6b108.zip
Solaris cleanup.
Diffstat (limited to 'src/include/port/solaris_i386.h')
-rwxr-xr-xsrc/include/port/solaris_i386.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/include/port/solaris_i386.h b/src/include/port/solaris_i386.h
new file mode 100755
index 00000000000..b2df1ba5e2c
--- /dev/null
+++ b/src/include/port/solaris_i386.h
@@ -0,0 +1,42 @@
+#define USE_POSIX_TIME
+#define USE_POSIX_SIGNALS
+#define NO_EMPTY_STMTS
+#define SYSV_DIRENT
+#define HAS_TEST_AND_SET
+typedef unsigned char slock_t;
+
+#include <sys/isa_defs.h>
+
+#ifndef BIG_ENDIAN
+#define BIG_ENDIAN 4321
+#endif
+#ifndef LITTLE_ENDIAN
+#define LITTLE_ENDIAN 1234
+#endif
+#ifndef PDP_ENDIAN
+#define PDP_ENDIAN 3412
+#endif
+#ifndef BYTE_ORDER
+#define BYTE_ORDER LITTLE_ENDIAN
+#endif
+
+#ifndef NAN
+
+#ifndef __nan_bytes
+#define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f }
+#endif /* __nan_bytes */
+
+#ifdef __GNUC__
+#define NAN \
+ (__extension__ ((union { unsigned char __c[8]; \
+ double __d; }) \
+ { __nan_bytes }).__d)
+
+#else /* Not GCC. */
+#define NAN (*(__const double *) __nan)
+#endif /* GCC. */
+#endif /* NAN */
+
+#ifndef index
+#define index strchr
+#endif