diff options
author | martinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-02-01 12:34:28 +0000 |
---|---|---|
committer | martinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-02-01 12:34:28 +0000 |
commit | 0e210d07196d8150829520a63494299cb223ff18 (patch) | |
tree | 6a4068240a56477ba3ebded6a7ec9a0360ff3760 /pcapio.c | |
parent | e5f0f4a393d40e82b67bb866699518505faae53d (diff) |
OK, fix it properly by adding test after config.h has been included...
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20668 f5534014-38df-0310-8fa8-9805f1628bb7
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 */ |