aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-11-13 18:56:55 +0000
committerYang Tse <yangsita@gmail.com>2008-11-13 18:56:55 +0000
commit17d2a464ad42c47ec37870e4b01a18ef5593877f (patch)
tree00948db22881746fb3d2740cd080587694829f56 /src
parentae6530ee82fc81506ec7c34ffea4fcf3be7c3717 (diff)
Refactor configure script detection of functions used to set sockets into
non-blocking mode, and decouple function detection from function capability.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.netware3
-rw-r--r--src/config-riscos.h5
-rw-r--r--src/config-win32.h12
3 files changed, 15 insertions, 5 deletions
diff --git a/src/Makefile.netware b/src/Makefile.netware
index 1ec0b8254..6b02935f2 100644
--- a/src/Makefile.netware
+++ b/src/Makefile.netware
@@ -449,12 +449,13 @@ endif
@echo $(DL)#define HAVE_ASSERT_H 1$(DL) >> $@
@echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@
@echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@
- @echo $(DL)#define HAVE_FIONBIO 1$(DL) >> $@
@echo $(DL)#define HAVE_GETHOSTBYADDR 1$(DL) >> $@
@echo $(DL)#define HAVE_GETHOSTBYNAME 1$(DL) >> $@
@echo $(DL)#define HAVE_GETPROTOBYNAME 1$(DL) >> $@
@echo $(DL)#define HAVE_GMTIME_R 1$(DL) >> $@
@echo $(DL)#define HAVE_INET_ADDR 1$(DL) >> $@
+ @echo $(DL)#define HAVE_IOCTL 1$(DL) >> $@
+ @echo $(DL)#define HAVE_IOCTL_FIONBIO 1$(DL) >> $@
@echo $(DL)#define HAVE_LL 1$(DL) >> $@
@echo $(DL)#define HAVE_LOCALE_H 1$(DL) >> $@
@echo $(DL)#define HAVE_LOCALTIME_R 1$(DL) >> $@
diff --git a/src/config-riscos.h b/src/config-riscos.h
index bb27a0d02..dc5a4c7d6 100644
--- a/src/config-riscos.h
+++ b/src/config-riscos.h
@@ -374,5 +374,8 @@
#define IOCTL_3_ARGS
-#define HAVE_FIONBIO
+/* Define if you have the ioctl function. */
+#define HAVE_IOCTL
+/* Define if you have a working ioctl FIONBIO function. */
+#define HAVE_IOCTL_FIONBIO
diff --git a/src/config-win32.h b/src/config-win32.h
index 8b18bd5c0..337d4e798 100644
--- a/src/config-win32.h
+++ b/src/config-win32.h
@@ -72,15 +72,21 @@
/* FUNCTIONS */
/* ---------------------------------------------------------------- */
-/* Define if you have the setmode function. */
-#define HAVE_SETMODE 1
-
/* Define if you have the ftruncate function. */
#define HAVE_FTRUNCATE 1
+/* Define if you have the ioctlsocket function. */
+#define HAVE_IOCTLSOCKET 1
+
+/* Define if you have a working ioctlsocket FIONBIO function. */
+#define HAVE_IOCTLSOCKET_FIONBIO 1
+
/* Define if you have the setlocale function. */
#define HAVE_SETLOCALE 1
+/* Define if you have the setmode function. */
+#define HAVE_SETMODE 1
+
/* Define if you have the strcasecmp function. */
/* #define HAVE_STRCASECMP 1 */