From ef538cd1edd02fb027b419440ddd8173650623a3 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 22 Jun 2018 14:18:59 -0400 Subject: [PATCH] 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 --- src/lib/ecore/ecore_glib.c | 15 ++++++++++++--- 1 file 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 @@ #include #include -#include -#include -#include +#ifdef HAVE_SYS_SOCKET_H +# include +#endif +#ifdef _WIN32 +# include +#endif +#ifdef HAVE_NETDB_H +# include +#endif +#ifdef HAVE_NETINET_IN_H +# include +#endif #include "Ecore.h" #include "ecore_private.h"