aboutsummaryrefslogtreecommitdiffstats
path: root/src/s/isc4-0.h
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1994-10-16 01:33:27 +0000
committerRichard M. Stallman <[email protected]>1994-10-16 01:33:27 +0000
commit35a474bb857b4858750c8d62023a891f774d2b90 (patch)
treead493047abe6cd22f3f8f89da617aa6f8f75ff58 /src/s/isc4-0.h
parent8e533ff0a92e0273646c46167e3671dfac148ec0 (diff)
(LIBS_SYSTEM): Add -lcposix.
(sigblock, SIG_BLOCK): Define if not defined.
Diffstat (limited to 'src/s/isc4-0.h')
-rw-r--r--src/s/isc4-0.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/s/isc4-0.h b/src/s/isc4-0.h
index 77c52d1fc9..a52e0d821e 100644
--- a/src/s/isc4-0.h
+++ b/src/s/isc4-0.h
@@ -1,6 +1,11 @@
#include "isc3-0.h"
-#define LIBS_SYSTEM -linet
+#undef LIBS_SYSTEM
+#ifdef HAVE_X_WINDOWS
+#define LIBS_SYSTEM -linet -lcposix
+#else
+#define LIBS_SYSTEM -lcposix
+#endif
#define ISC4_0
@@ -10,3 +15,13 @@
#undef LIBX11_SYSTEM
#define LIBX11_SYSTEM -lpt -lnls -lnsl_s -lcposix -lc
#endif
+
+/* Tobias Herbert <[email protected]>
+ says this is needed. */
+
+#ifndef sigblock
+#ifndef SIG_BLOCK
+#define SIG_BLOCK 0
+#endif
+#define sigblock(sig) (sigprocmask (SIG_BLOCK, SIGEMPTYMASK | sig, NULL))
+#endif