Commit 5c8c815e authored by Martti Mela's avatar Martti Mela

added check for header fcntl.h

darcs-hash:20060530061932-1b897-1b8941b47747de0ff931ac9062b92afa86d63e00.gz
parent 9b9acd78
...@@ -45,6 +45,10 @@ typedef unsigned _int32 uint32_t; ...@@ -45,6 +45,10 @@ typedef unsigned _int32 uint32_t;
#endif #endif
#endif #endif
#if HAVE_FCNTL_H
#include <fcntl.h>
#endif
#if HAVE_NETINET_IN_H #if HAVE_NETINET_IN_H
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
...@@ -118,7 +122,7 @@ static void test_answer_multi(sres_context_t *ctx, sres_query_t *query, ...@@ -118,7 +122,7 @@ static void test_answer_multi(sres_context_t *ctx, sres_query_t *query,
static int tstflags = 0; static int tstflags = 0;
#if 0 #if 1
static static
int setblocking(int s, int blocking) int setblocking(int s, int blocking)
{ {
......
...@@ -107,6 +107,8 @@ esac ...@@ -107,6 +107,8 @@ esac
AC_CHECK_HEADERS([unistd.h sys/time.h]) AC_CHECK_HEADERS([unistd.h sys/time.h])
AC_CHECK_HEADERS([fcntl.h])
AC_CHECK_HEADERS([winsock2.h ws2tcpip.h], [ AC_CHECK_HEADERS([winsock2.h ws2tcpip.h], [
AC_DEFINE([HAVE_WIN32], 1, [Define to 1 you have WIN32]) AC_DEFINE([HAVE_WIN32], 1, [Define to 1 you have WIN32])
SAC_SU_DEFINE([SU_HAVE_WINSOCK], 1, [Define to 1 you have WinSock]) SAC_SU_DEFINE([SU_HAVE_WINSOCK], 1, [Define to 1 you have WinSock])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment