From: kakaroto Date: Sat, 7 Jan 2012 11:39:23 +0000 (+0000) Subject: Ecore-con: Let's not break compilation if net/if.h is not found (or old system) X-Git-Tag: 2.0_alpha~86^2~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=310db9d27b0784ed8354d62723ae4c760a725167;p=framework%2Fuifw%2Fecore.git Ecore-con: Let's not break compilation if net/if.h is not found (or old system) git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@66956 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore_con/ecore_con_socks.c b/src/lib/ecore_con/ecore_con_socks.c index c960618..aecaff0 100644 --- a/src/lib/ecore_con/ecore_con_socks.c +++ b/src/lib/ecore_con/ecore_con_socks.c @@ -18,6 +18,16 @@ # include #endif +/* if net/if.h is not found or if an older versions of net/if.h is provided + which does not define IF_NAMESIZE. We must define it ourselves */ +#ifndef IF_NAMESIZE +# ifdef IFNAMSIZ +# define IF_NAMESIZE IFNAMSIZ +# else +# define IF_NAMESIZE 16 +# endif +#endif + #ifdef HAVE_NETINET_IN_H # include #endif