diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2007-02-01 12:34:28 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2007-02-01 12:34:28 +0000 |
commit | a95ce819f6aa41634e4f54e7c88df271a82e0eda (patch) | |
tree | 6a4068240a56477ba3ebded6a7ec9a0360ff3760 /pcapio.c | |
parent | acfb8508f239f6fd1cfc3ba937ef4ca65f00408f (diff) |
OK, fix it properly by adding test after config.h has been included...
svn path=/trunk/; revision=20668
Diffstat (limited to 'pcapio.c')
-rw-r--r-- | pcapio.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,6 +1,3 @@ -/* TODO: why isn't this defined??? */ -/* #ifdef HAVE_LIBPCAP */ - /* pcapio.c * Our own private code for writing libpcap files when capturing. * @@ -47,6 +44,8 @@ #include "config.h" #endif +#ifdef HAVE_LIBPCAP + #include <stdlib.h> #include <stdio.h> #include <errno.h> @@ -188,4 +187,4 @@ libpcap_dump_close(FILE *pd, int *err) return TRUE; } -/*#endif */ /* HAVE_LIBPCAP */ +#endif /* HAVE_LIBPCAP */ |