aboutsummaryrefslogtreecommitdiffstats
path: root/pcapio.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2007-02-01 12:34:28 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2007-02-01 12:34:28 +0000
commita95ce819f6aa41634e4f54e7c88df271a82e0eda (patch)
tree6a4068240a56477ba3ebded6a7ec9a0360ff3760 /pcapio.c
parentacfb8508f239f6fd1cfc3ba937ef4ca65f00408f (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.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/pcapio.c b/pcapio.c
index c762d4313e..d6df7840ae 100644
--- a/pcapio.c
+++ b/pcapio.c
@@ -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 */