From dfb08ec753018b8f81cd81839b737ef6f75a9901 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 2 Sep 2015 15:51:28 -0700 Subject: More netcon stuff, and Phy build fix. --- osdep/Phy.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'osdep') diff --git a/osdep/Phy.hpp b/osdep/Phy.hpp index aad40cd1..979e6dfa 100644 --- a/osdep/Phy.hpp +++ b/osdep/Phy.hpp @@ -58,6 +58,7 @@ #include #include #include +#include #include #include #include @@ -919,6 +920,11 @@ public: ZT_PHY_CLOSE_SOCKET(sws.sock); +#ifdef __UNIX_LIKE__ + if (sws.type == ZT_PHY_SOCKET_UNIX_LISTEN) + ::unlink(((struct sockaddr_un *)(&(sws.saddr)))->sun_path); +#endif // __UNIX_LIKE__ + if (callHandlers) { switch(sws.type) { case ZT_PHY_SOCKET_TCP_OUT_PENDING: -- cgit v1.2.3