From d27b1df4e891ca55bd55aa2f4624f3e0f9aebf91 Mon Sep 17 00:00:00 2001 From: Jean Guyomarc'h Date: Sun, 30 Oct 2016 18:40:54 +0100 Subject: [PATCH] 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 0e2086a9f1..6f401a0153 100644 --- a/src/lib/ecore_con/ecore_con.c +++ b/src/lib/ecore_con/ecore_con.c @@ -26,10 +26,6 @@ # include #endif -#ifdef HAVE_SYS_UN_H -#include -#endif - #ifdef HAVE_SYSTEMD # include #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 #endif +#ifdef HAVE_SYS_UN_H +#include +#endif + #define READBUFSIZ 65536 extern int _ecore_con_log_dom;