summaryrefslogtreecommitdiff
path: root/net/dctc/files/config.h
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-12-02 21:54:10 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-12-02 21:54:10 +0000
commit6452587524f1fd1b2551642992114010afb51f36 (patch)
treec8de17de2df8d3987e655647c93aec1b08aa2581 /net/dctc/files/config.h
parentDon't hardcode /usr/local/. (diff)
o Update to 0.61
o Greatly simplify the patches removing sigprocmask protection around send/receive since there is already a global signal handler
Diffstat (limited to 'net/dctc/files/config.h')
-rw-r--r--net/dctc/files/config.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/net/dctc/files/config.h b/net/dctc/files/config.h
new file mode 100644
index 000000000000..c82313ca54e0
--- /dev/null
+++ b/net/dctc/files/config.h
@@ -0,0 +1,30 @@
+#ifndef ___CONFIG_H___
+#define ___CONFIG_H___
+
+/* To enable detecting of BSD systems */
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#include <sys/param.h>
+#endif
+
+#include <sys/types.h>
+#include <sys/socket.h>
+
+/* For BSD */
+#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
+
+#ifndef MSG_NOSIGNAL
+#define MSG_NOSIGNAL 0
+#endif
+
+#ifndef SEMVMX
+/* this value comes from linux/sem.h */
+#define SEMVMX 32767
+#endif
+
+#endif /* ___CONFIG_H___ */