diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-12-02 21:54:10 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-12-02 21:54:10 +0000 |
commit | 6452587524f1fd1b2551642992114010afb51f36 (patch) | |
tree | c8de17de2df8d3987e655647c93aec1b08aa2581 /net-p2p/dctc/files/config.h | |
parent | cfaf7af6f070d11f23a60754df078bb531aa97c5 (diff) |
Notes
Diffstat (limited to 'net-p2p/dctc/files/config.h')
-rw-r--r-- | net-p2p/dctc/files/config.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/net-p2p/dctc/files/config.h b/net-p2p/dctc/files/config.h new file mode 100644 index 000000000000..c82313ca54e0 --- /dev/null +++ b/net-p2p/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___ */ |