ecore_con: use SOCKET and not int for socket descriptors on win32
authorGuillaume Friloux <guillaume.friloux@gmail.com>
Fri, 30 Jan 2015 10:03:00 +0000 (11:03 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Wed, 11 Feb 2015 16:03:37 +0000 (17:03 +0100)
src/lib/ecore_con/ecore_con_private.h

index 93942e2..bed20ad 100644 (file)
@@ -96,7 +96,11 @@ typedef enum Ecore_Con_Proxy_State
 
 struct _Ecore_Con_Client_Data
 {
+#ifdef _WIN32
+   SOCKET fd;
+#else
    int fd;
+#endif
    Ecore_Con_Server *host_server;
    void *data;
    Ecore_Fd_Handler *fd_handler;
@@ -126,7 +130,11 @@ typedef struct _Ecore_Con_Client_Data Ecore_Con_Client_Data;
 
 struct _Ecore_Con_Server_Data
 {
+#ifdef _WIN32
+   SOCKET fd;
+#else
    int fd;
+#endif
    Ecore_Con_Type type;
    char *name;
    int port;