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 1adb73cef8
ref T5725
fix T7063

Differential Revision: https://phab.enlightenment.org/D6369
This commit is contained in:
Mike Blumenkrantz 2018-06-22 14:18:59 -04:00
parent b60a9999ca
commit ef538cd1ed
1 changed files with 12 additions and 3 deletions

View File

@ -4,9 +4,18 @@
#include <stdlib.h>
#include <stdio.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef _WIN32
# include <ws2tcpip.h>
#endif
#ifdef HAVE_NETDB_H
# include <netdb.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#include "Ecore.h"
#include "ecore_private.h"