summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-18 12:32:16 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-18 12:53:32 -0200
commitc3ddc8f09e6d7f7deec73d5f380f24a1cf2a3919 (patch)
tree9835ec43f9b6f7ce9adbff9fd96e08d3d4f38394
parentb322a3ae53827cb880cec8d8f234f685dce6a179 (diff)
efl_net: do not use sockaddr_un on Windows.
struct sockaddr_un doesn't exist on windows, so do not use it. Partially addresses D4357.
-rw-r--r--src/lib/ecore_con/ecore_con.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c
index 0812a7c0fb..2d58c988dc 100644
--- a/src/lib/ecore_con/ecore_con.c
+++ b/src/lib/ecore_con/ecore_con.c
@@ -3567,7 +3567,11 @@ static void
3567_efl_net_connect_async_run(void *data, Ecore_Thread *thread EINA_UNUSED) 3567_efl_net_connect_async_run(void *data, Ecore_Thread *thread EINA_UNUSED)
3568{ 3568{
3569 Efl_Net_Connect_Async_Data *d = data; 3569 Efl_Net_Connect_Async_Data *d = data;
3570 char buf[INET6_ADDRSTRLEN + sizeof("[]:65536") + sizeof(struct sockaddr_un)] = ""; 3570 char buf[INET6_ADDRSTRLEN + sizeof("[]:65536")
3571#ifndef _WIN32
3572 + sizeof(struct sockaddr_un)
3573#endif
3574 ] = "";
3571 int r; 3575 int r;
3572 3576
3573 /* allows ecore_thread_cancel() to cancel at some points, see 3577 /* allows ecore_thread_cancel() to cancel at some points, see