aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
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