examples/net: Fix compilation on Windows
authorVincent Torri <vincent.torri@gmail.com>
Tue, 20 Jun 2017 05:19:13 +0000 (14:19 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 20 Jun 2017 05:34:52 +0000 (14:34 +0900)
src/examples/ecore/efl_net_ip_address_example.c

index 37cbc2f..2392b23 100644 (file)
@@ -1,10 +1,17 @@
 #define EFL_BETA_API_SUPPORT 1
 #define EFL_EO_API_SUPPORT 1
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 #include <Ecore.h>
 #include <Ecore_Con.h>
 #include <Ecore_Getopt.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+#ifdef HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+#endif
 
 static int retval = EXIT_SUCCESS;
 static Eina_List *resolving = NULL;