aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-12 05:20:05 +0000
committerYang Tse <yangsita@gmail.com>2006-07-12 05:20:05 +0000
commit2278e8f1ba2561450dedb57e9f6d5722e5ebc02a (patch)
tree71ecce1e2c43e15713e539d7b5b223fe04d6c74f /lib
parent58176d14848f315ea74772bd9ce7edd847b2a17d (diff)
DJGPP/WATT32 does not have functions named recv() send() getnameinfo().
Diffstat (limited to 'lib')
-rw-r--r--lib/config.dj46
1 files changed, 24 insertions, 22 deletions
diff --git a/lib/config.dj b/lib/config.dj
index 2d1295feb..45bbfbe4e 100644
--- a/lib/config.dj
+++ b/lib/config.dj
@@ -22,7 +22,6 @@
#define HAVE_FIONBIO 1
#define HAVE_GETHOSTBYADDR 1
#define HAVE_GETHOSTNAME 1
-#define HAVE_GETNAMEINFO 1
#define HAVE_GETPASS 1
#define HAVE_GETSERVBYNAME 1
#define HAVE_GETPROTOBYNAME 1
@@ -43,9 +42,7 @@
#define HAVE_NET_IF_H 1
#define HAVE_PROCESS_H 1
#define HAVE_PERROR 1
-#define HAVE_RECV 1
#define HAVE_SELECT 1
-#define HAVE_SEND 1
#define HAVE_SETJMP_H 1
#define HAVE_SETLOCALE 1
#define HAVE_SETVBUF 1
@@ -121,26 +118,31 @@
#define ssize_t int
#endif
-/* Types and qualifies for getnameinfo(), recv() and send()
+/* Types and qualifies for getnameinfo(), recv() and send()
+ * should not be defined. See lib/setup.h for explanation.
*/
-#define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
-#define GETNAMEINFO_QUAL_ARG1 const
-#define GETNAMEINFO_TYPE_ARG2 socklen_t
-#define GETNAMEINFO_TYPE_ARG46 int
-#define GETNAMEINFO_TYPE_ARG7 int
-
-#define RECV_TYPE_ARG1 int
-#define RECV_TYPE_ARG2 void *
-#define RECV_TYPE_ARG3 int
-#define RECV_TYPE_ARG4 int
-#define RECV_TYPE_RETV int
-
-#define SEND_TYPE_ARG1 int
-#define SEND_QUAL_ARG2 const
-#define SEND_TYPE_ARG2 void *
-#define SEND_TYPE_ARG3 int
-#define SEND_TYPE_ARG4 int
-#define SEND_TYPE_RETV int
+
+#undef HAVE_GETNAMEINFO
+#undef GETNAMEINFO_TYPE_ARG1
+#undef GETNAMEINFO_QUAL_ARG1
+#undef GETNAMEINFO_TYPE_ARG2
+#undef GETNAMEINFO_TYPE_ARG46
+#undef GETNAMEINFO_TYPE_ARG7
+
+#undef HAVE_RECV
+#undef RECV_TYPE_ARG1
+#undef RECV_TYPE_ARG2
+#undef RECV_TYPE_ARG3
+#undef RECV_TYPE_ARG4
+#undef RECV_TYPE_RETV
+
+#undef HAVE_SEND
+#undef SEND_TYPE_ARG1
+#undef SEND_QUAL_ARG2
+#undef SEND_TYPE_ARG2
+#undef SEND_TYPE_ARG3
+#undef SEND_TYPE_ARG4
+#undef SEND_TYPE_RETV
#include <stdlib.h>
#include <string.h>