summaryrefslogtreecommitdiff
path: root/src/port
diff options
context:
space:
mode:
authorMarc G. Fournier1997-03-25 09:21:59 +0000
committerMarc G. Fournier1997-03-25 09:21:59 +0000
commitc2e73db87ad91eabcb639e397229ba865f597668 (patch)
tree171ff3f749cafdfdba76507ab55c7395954b1447 /src/port
parent6304e2c273b9ae13f4fde44c02c535c56b45cd91 (diff)
Various patches for shared libraries under i386-solaris by:
Christoph Kaesling <ck@dog.pfalz.sub.de>
Diffstat (limited to 'src/port')
-rw-r--r--src/port/i386_solaris.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/port/i386_solaris.h b/src/port/i386_solaris.h
index aa78ba5f6c1..0ac1116f06f 100644
--- a/src/port/i386_solaris.h
+++ b/src/port/i386_solaris.h
@@ -4,3 +4,35 @@
# define SYSV_DIRENT
# define HAS_TEST_AND_SET
typedef unsigned char slock_t;
+
+#include <sys/isa_defs.h>
+
+#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
+
+#ifndef HAVE_RUSAGE
+#define HAVE_RUSAGE 1
+#endif
+