aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2004-09-07 08:42:02 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2004-09-07 08:42:02 +0000
commit39dc91088544809cb07d4fcd2b4e842be1e9f10c (patch)
treee772d6baf3d48d81d76e1f1f6257eb304f9eefee /gtk
parent4c8eba4d5c479decfca5d6c4a6e411a40b01fef1 (diff)
using #ifdef HAVE_SYS_TYPES_H around some of the includes making problems, but still uncompilable on win32!!!
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11921 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk')
-rw-r--r--gtk/sctp_stat.c17
-rw-r--r--gtk/sctp_stat.h14
2 files changed, 23 insertions, 8 deletions
diff --git a/gtk/sctp_stat.c b/gtk/sctp_stat.c
index 46c01dde09..8936df0580 100644
--- a/gtk/sctp_stat.c
+++ b/gtk/sctp_stat.c
@@ -26,10 +26,19 @@
# include "config.h"
#endif
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#ifndef WIN32
+#include <netinet/in.h>
+#endif
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+
#include <stdio.h>
#include <gtk/gtk.h>
#include "simple_dialog.h" /* Both is used for error handling */
diff --git a/gtk/sctp_stat.h b/gtk/sctp_stat.h
index 6f9e99f4b7..699384df3c 100644
--- a/gtk/sctp_stat.h
+++ b/gtk/sctp_stat.h
@@ -22,10 +22,16 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#include <epan/dissectors/packet-sctp.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
+#include <epan/dissectors/packet-sctp.h>
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#ifndef WIN32
+#include <netinet/in.h>
+#endif
#define SCTP_DATA_CHUNK_ID 0
#define SCTP_INIT_CHUNK_ID 1