summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-06-22 14:18:59 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-22 15:26:44 -0400
commitef538cd1edd02fb027b419440ddd8173650623a3 (patch)
tree42bad1617a52f44e0da0e386d6e3366433464800
parentb60a9999ca760b229baaa9261efae80cb832066d (diff)
ecore/glib: add #ifdef guards for newly added includes
these headers are not available on all platforms (e.g., windows) and so the corresponding #ifdef checks must be used in order to correctly include them ref 1adb73cef82c45f2cc8766f43ffb88288e7e8a65 ref T5725 fix T7063 Differential Revision: https://phab.enlightenment.org/D6369
-rw-r--r--src/lib/ecore/ecore_glib.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/ecore/ecore_glib.c b/src/lib/ecore/ecore_glib.c
index 5598ab0254..8fc2c158bf 100644
--- a/src/lib/ecore/ecore_glib.c
+++ b/src/lib/ecore/ecore_glib.c
@@ -4,9 +4,18 @@
4 4
5#include <stdlib.h> 5#include <stdlib.h>
6#include <stdio.h> 6#include <stdio.h>
7#include <sys/socket.h> 7#ifdef HAVE_SYS_SOCKET_H
8#include <netdb.h> 8# include <sys/socket.h>
9#include <netinet/in.h> 9#endif
10#ifdef _WIN32
11# include <ws2tcpip.h>
12#endif
13#ifdef HAVE_NETDB_H
14# include <netdb.h>
15#endif
16#ifdef HAVE_NETINET_IN_H
17# include <netinet/in.h>
18#endif
10 19
11#include "Ecore.h" 20#include "Ecore.h"
12#include "ecore_private.h" 21#include "ecore_private.h"