summaryrefslogtreecommitdiff
path: root/ace/config-hpux-10.x.h
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>1997-08-20 23:17:26 +0000
committerSteve Huston <shuston@riverace.com>1997-08-20 23:17:26 +0000
commit58bb221517a9be4d0e96de32de3fd1a06fefd1b4 (patch)
tree5d66fc03ea850fc0bbd774cc4f594565802b0f0f /ace/config-hpux-10.x.h
parentbe7b80c9d42d70287f7da9137e195a55d5c4234a (diff)
downloadATCD-58bb221517a9be4d0e96de32de3fd1a06fefd1b4.tar.gz
Added separate sections for 10.10 vs. 10.20 vs. 10.30.
10.10 needs ACE_LACKS_TIMESPEC_T, and doesn't have _r functions. 10.20 does not need ACE_LACKS_TIMESPEC_T and does have _r functions.
Diffstat (limited to 'ace/config-hpux-10.x.h')
-rw-r--r--ace/config-hpux-10.x.h27
1 files changed, 22 insertions, 5 deletions
diff --git a/ace/config-hpux-10.x.h b/ace/config-hpux-10.x.h
index ee2fb4af020..4c6cb07c64e 100644
--- a/ace/config-hpux-10.x.h
+++ b/ace/config-hpux-10.x.h
@@ -20,6 +20,28 @@
#define _HPUX_SOURCE
#endif
+// Some things are different for 10.10 vs. 10.20 vs. 10.30
+// If the version number wasn't set up by the compiler command line,
+// set up as if it was 10.20.
+#if !defined (HPUX_VERS)
+#define HPUX_VERS 1020
+#endif
+
+# if (HPUX_VERS < 1020) // 10.10
+# define ACE_LACKS_TIMESPEC_T
+# elif (HPUX_VERS < 1030) // 10.20
+
+ // Platform supports reentrant functions (all the POSIX *_r functions).
+# define ACE_HAS_REENTRANT_FUNCTIONS
+ // But this one is not like other platforms
+# define ACE_CTIME_R_RETURNS_INT
+
+# else // 10.30
+// Don't know yet... probably will be 10.20 but with some different thread
+// settings.
+# endif /* HPUX_VERS tests */
+#endif /* defined HPUX_VERS */
+
#include /**/ <sys/stdsyms.h>
#include /**/ <sched.h> /* pthread.h doesn't include this */
@@ -160,11 +182,6 @@ extern int h_errno; /* This isn't declared in a header file on HP-UX */
// Platform's sigwait() has one arg
# define ACE_HAS_ONEARG_SIGWAIT
-// Platform supports reentrant functions (i.e., all the POSIX *_r functions).
-# define ACE_HAS_REENTRANT_FUNCTIONS
-// But this one is not like other platforms
-# define ACE_CTIME_R_RETURNS_INT
-
# define ACE_HAS_THREAD_SPECIFIC_STORAGE
// ... and it's looked up via an argument
# define ACE_HAS_PTHREAD_GETSPECIFIC_DATAPTR