summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mrcsys2006-05-01 17:56:32 +0000
committerGravatar mrcsys2006-05-01 17:56:32 +0000
commita40b8b548afe6c55c841cd29877f71f234096b27 (patch)
tree9b8ae898cebacaa9678c4ef8e21e5834f60257d8
parentc41f3517d50ae8f6c203ababd347bf2105d17b18 (diff)
downloadcsoap-a40b8b548afe6c55c841cd29877f71f234096b27.tar.gz
csoap-a40b8b548afe6c55c841cd29877f71f234096b27.tar.bz2
this is cleaner
-rw-r--r--nanohttp/nanohttp-socket.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/nanohttp/nanohttp-socket.h b/nanohttp/nanohttp-socket.h
index 5c1554d..eb805fd 100644
--- a/nanohttp/nanohttp-socket.h
+++ b/nanohttp/nanohttp-socket.h
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: nanohttp-socket.h,v 1.28 2006/05/01 17:51:50 mrcsys Exp $
+ * $Id: nanohttp-socket.h,v 1.29 2006/05/01 17:56:32 mrcsys Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -26,14 +26,6 @@
#include <sys/types.h>
-#ifdef HAVE_SOCKET_H
-#include <sys/socket.h>
-#endif
-
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-
#include <time.h>
#ifdef HAVE_SSL
@@ -42,6 +34,9 @@
#ifdef WIN32
#include <winsock2.h>
+#else
+#include <sys/socket.h>
+#include <netinet/in.h>
#endif
#include <nanohttp/nanohttp-common.h>