On Fri, 30 Nov 2012 23:19:19 -0800 "Enlightenment SVN" <no-re...@enlightenment.org> wrote:
> Log: > E17: define htonl correctly > > > Author: caro > Date: 2012-11-30 23:19:18 -0800 (Fri, 30 Nov 2012) > New Revision: 79960 > Trac: http://trac.enlightenment.org/e/changeset/79960 > > Modified: > trunk/e/configure.ac trunk/e/src/bin/e_sha1.c > trunk/e/src/modules/mixer/pa.h > > Modified: trunk/e/configure.ac > =================================================================== > --- trunk/e/configure.ac 2012-12-01 04:22:28 UTC (rev 79959) > +++ trunk/e/configure.ac 2012-12-01 07:19:18 UTC (rev 79960) > @@ -76,7 +76,7 @@ > > efl_version="1.7.0" > > -AC_CHECK_HEADERS([sys/timerfd.h sys/ptrace.h]) > +AC_CHECK_HEADERS([sys/timerfd.h sys/ptrace.h arpa/inet.h netinet/in.h]) > > dnl AC_CHECK_HEADERS(X11/extensions/shape.h,, AC_MSG_ERROR([Cannot find > X11/extensions/shape.h. Make sure your CFLAGS environment variable contains > include lines for the location of this file])) > > > Modified: trunk/e/src/bin/e_sha1.c > =================================================================== > --- trunk/e/src/bin/e_sha1.c 2012-12-01 04:22:28 UTC (rev 79959) > +++ trunk/e/src/bin/e_sha1.c 2012-12-01 07:19:18 UTC (rev 79960) > @@ -1,7 +1,14 @@ > #include "e_sha1.h" > #include <string.h> > -#include <arpa/inet.h> > > +#ifdef HAVE_ARPA_INET_H > +# include <arpa/inet.h> > +#endif > + > +#ifdef HAVE_NETINET_IN_H > +# include <netinet/in.h> > +#endif > + > /* externally accessible functions */ > > #define SHSH(n, v) ((((v) << (n)) & 0xffffffff) | ((v) >> (32 - (n)))) > > Modified: trunk/e/src/modules/mixer/pa.h > =================================================================== > --- trunk/e/src/modules/mixer/pa.h 2012-12-01 04:22:28 UTC (rev 79959) > +++ trunk/e/src/modules/mixer/pa.h 2012-12-01 07:19:18 UTC (rev 79960) > @@ -5,6 +5,14 @@ > # include "config.h" > #endif > > +#ifdef HAVE_ARPA_INET_H > +# include <arpa/inet.h> > +#endif > + > +#ifdef HAVE_NETINET_IN_H > +# include <netinet/in.h> > +#endif > + > #include <Ecore.h> > #include <Ecore_Con.h> > #include <inttypes.h> > > this commit causes: * ../e_sha1.c:102:4: warning: implicit declaration of function 'htonl' * e_sha1.c:102:4: warning: implicit declaration of function 'htonl' * e_sha1.c:102:4: warning: implicit declaration of function 'htonl' ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel