Author: biurrun Date: Thu Mar 18 10:20:52 2010 New Revision: 2171 Log: Move Linux-specific #include from the header to the implementation. Modified: trunk/libpisa/sysdep.h trunk/libpisa/sysdep_tun.c Modified: trunk/libpisa/sysdep.h ============================================================================== --- trunk/libpisa/sysdep.h Thu Mar 18 10:20:04 2010 (r2170) +++ trunk/libpisa/sysdep.h Thu Mar 18 10:20:52 2010 (r2171) @@ -16,13 +16,6 @@ #include <time.h> /* time_t */ #include <sys/types.h> - -#ifdef __linux__ - -#include <linux/if_tun.h> - -#endif /* __linux__ */ - #include "config.h" #ifndef HAVE_CLOCK_GETTIME Modified: trunk/libpisa/sysdep_tun.c ============================================================================== --- trunk/libpisa/sysdep_tun.c Thu Mar 18 10:20:04 2010 (r2170) +++ trunk/libpisa/sysdep_tun.c Thu Mar 18 10:20:52 2010 (r2171) @@ -25,6 +25,8 @@ #ifdef __linux__ +#include <linux/if_tun.h> + /* see the header */ int pisa_tunnel_open_tundev(char *devicename, size_t len) {