summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-04-12 19:20:13 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-04-12 19:20:13 +0100
commit7ef5b60411fac4b1ce30cf5b1e8f0cd3fe48e0ee (patch)
tree8b6f2b90c00d2a841f931a1e609c1a0d879969af
parent963c1b9adf4438ff26dcb4e132884058698b1330 (diff)
fix buid on bsd
-rw-r--r--src/lib/ecore_con/efl_net_server_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_con/efl_net_server_unix.c b/src/lib/ecore_con/efl_net_server_unix.c
index 68f97a7619..473442331f 100644
--- a/src/lib/ecore_con/efl_net_server_unix.c
+++ b/src/lib/ecore_con/efl_net_server_unix.c
@@ -107,16 +107,16 @@ EOLIAN static void
107_efl_net_server_unix_efl_object_destructor(Eo *o, Efl_Net_Server_Unix_Data *pd EINA_UNUSED) 107_efl_net_server_unix_efl_object_destructor(Eo *o, Efl_Net_Server_Unix_Data *pd EINA_UNUSED)
108{ 108{
109 SOCKET fd = efl_loop_fd_get(o); 109 SOCKET fd = efl_loop_fd_get(o);
110 const char *address = efl_net_server_address_get(o);
110 111
111 if (fd != INVALID_SOCKET) 112 if (fd != INVALID_SOCKET)
112 { 113 {
113 const char *address = efl_net_server_address_get(o);
114 if ((address) && 114 if ((address) &&
115 (strncmp(address, "abstract:", strlen("abstract:")) != 0)) 115 (strncmp(address, "abstract:", strlen("abstract:")) != 0))
116 unlink(address); 116 unlink(address);
117 } 117 }
118#ifdef BIND_HANG_WORKAROUND 118#ifdef BIND_HANG_WORKAROUND
119 if ((pd->have_lock_fd) && (pd->lock_fd >= 0)) 119 if ((address) && (pd->have_lock_fd) && (pd->lock_fd >= 0))
120 { 120 {
121 _efl_net_server_unix_bind_hang_lock_workaround 121 _efl_net_server_unix_bind_hang_lock_workaround
122 (address, EINA_FALSE, pd->lock_fd); 122 (address, EINA_FALSE, pd->lock_fd);