blob: c1d90f1f876af77177f33cdedc16734335379d3d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--- src/main.c.orig Sat Nov 24 13:22:57 2001
+++ src/main.c Sat Nov 24 13:25:24 2001
@@ -30,12 +30,23 @@
#include <sys/param.h>
#include <sys/utsname.h>
#include <sys/un.h>
-#include <linux/sem.h> /* for the value of SEMVMX */
#include <errno.h>
#include <getopt.h>
#include <string.h>
#include <glib.h>
#include <pthread.h>
+
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#include <sys/param.h>
+#endif
+
+#if (defined(BSD) && (BSD >= 199103))
+# include <sys/ipc.h>
+# include <sys/sem.h>
+#else
+/* For linux */
+# include <linux/sem.h> /* for the value of SEMVMX */
+#endif
#include "var.h"
#include "display.h"
|