aboutsummaryrefslogtreecommitdiff
path: root/jim-aio.c
diff options
context:
space:
mode:
Diffstat (limited to 'jim-aio.c')
-rw-r--r--jim-aio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/jim-aio.c b/jim-aio.c
index 8f7b12e..e39e60d 100644
--- a/jim-aio.c
+++ b/jim-aio.c
@@ -47,7 +47,7 @@
#include "jim.h"
#include "jimautoconf.h"
-#if !defined(JIM_ANSIC)
+#if defined(HAVE_SYS_SOCKET_H) && defined(HAVE_SELECT) && defined(HAVE_NETINET_IN_H) && defined(HAVE_NETDB_H) && defined(HAVE_ARPA_INET_H)
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -55,6 +55,8 @@
#ifdef HAVE_SYS_UN_H
#include <sys/un.h>
#endif
+#else
+#define JIM_ANSIC
#endif
#include "jim-eventloop.h"