summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean@guyomarch.bzh>2016-10-30 18:40:54 +0100
committerJean Guyomarc'h <jean@guyomarch.bzh>2016-10-30 18:40:54 +0100
commitd27b1df4e891ca55bd55aa2f4624f3e0f9aebf91 (patch)
tree1da92a5a0247556493add79d1474ffad5088ce26
parent5e149977e749eac878e8bcb01ce77f45f91c47ea (diff)
downloadefl-d27b1df4e891ca55bd55aa2f4624f3e0f9aebf91.tar.gz
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.
-rw-r--r--src/lib/ecore_con/ecore_con.c4
-rw-r--r--src/lib/ecore_con/ecore_con_private.h4
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 0e2086a9f1..6f401a0153 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 a7cd143005..2063932bbe 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;