jayji pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d27b1df4e891ca55bd55aa2f4624f3e0f9aebf91

commit d27b1df4e891ca55bd55aa2f4624f3e0f9aebf91
Author: Jean Guyomarc'h <j...@guyomarch.bzh>
Date:   Sun Oct 30 18:40:54 2016 +0100

    ecore_con: fix structure declaration
    
    Clang raised a massive amount of warnings due to the struct sockaddr_un
    not being declared before using it. So, include the header that declares
    this structure first.
---
 src/lib/ecore_con/ecore_con.c         | 4 ----
 src/lib/ecore_con/ecore_con_private.h | 4 ++++
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c
index 0e2086a..6f401a0 100644
--- a/src/lib/ecore_con/ecore_con.c
+++ b/src/lib/ecore_con/ecore_con.c
@@ -26,10 +26,6 @@
 # include <arpa/inet.h>
 #endif
 
-#ifdef HAVE_SYS_UN_H
-#include <sys/un.h>
-#endif
-
 #ifdef HAVE_SYSTEMD
 # include <systemd/sd-daemon.h>
 #endif
diff --git a/src/lib/ecore_con/ecore_con_private.h 
b/src/lib/ecore_con/ecore_con_private.h
index a7cd143..2063932 100644
--- a/src/lib/ecore_con/ecore_con_private.h
+++ b/src/lib/ecore_con/ecore_con_private.h
@@ -18,6 +18,10 @@
 # include <openssl/ssl.h>
 #endif
 
+#ifdef HAVE_SYS_UN_H
+#include <sys/un.h>
+#endif
+
 #define READBUFSIZ 65536
 
 extern int _ecore_con_log_dom;

-- 


Reply via email to