summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-31 14:37:54 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-31 14:37:54 +0000
commit688b50d6e8df997a847ed6ce294062d9340e4a6c (patch)
tree0100e17118039712606cf22060767c3c48df52db
parent26d322e507ccf32a589e419f1c3442e7852dc1b2 (diff)
downloadATCD-688b50d6e8df997a847ed6ce294062d9340e4a6c.tar.gz
added ACE_NSIG
-rw-r--r--ace/OS.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/ace/OS.h b/ace/OS.h
index 0ce76f8af6b..ac4e4eb94ed 100644
--- a/ace/OS.h
+++ b/ace/OS.h
@@ -2906,12 +2906,6 @@ unsigned long inet_network(const char *);
# ifndef howmany
# define howmany(x, y) (((x)+((y)-1))/(y))
# endif /* howmany */
-
- // LynxOS sets NSIG to the highest-numbered signal. We assume that
- // it is one greater than that; redefine it here based on the
- // knowledge that SIGRTMAX is the highest-numbered signal.
-# undef NSIG
-# define NSIG (SIGRTMAX + 1)
#endif /* __Lynx__ */
#if defined (CHORUS)
@@ -3352,10 +3346,14 @@ struct sigaction
#define SEM_UNDO 0
#endif /* SEM_UNDO */
-// Why is this defined? It must be a std C library symbol.
-#if !defined (NSIG)
-#define NSIG 0
-#endif /* NSIG */
+#if defined (__Lynx__)
+ // LynxOS sets NSIG to the highest-numbered signal.
+# define ACE_NSIG (NSIG + 1)
+#else
+ // All other platforms set NSIG to one greater than the
+ // highest-numbered signal.
+# define ACE_NSIG NSIG
+#endif /* __Lynx__ */
#if !defined (R_OK)
#define R_OK 04 /* Test for Read permission. */