aboutsummaryrefslogtreecommitdiffstats
path: root/capture_errs.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-05-14 02:47:13 +0000
committerGuy Harris <guy@alum.mit.edu>2010-05-14 02:47:13 +0000
commite36628d2aab64145cd466b260943cabd5f550ad8 (patch)
tree95b4ba34a75a07637de459e86bc88b671fe9e356 /capture_errs.h
parent8d56103f48aeb75e3a9be453eb15e03ece652890 (diff)
If something is only supposed to be included if we have libpcap, don't
put #ifdef HAVE_LIBPCAP in it. Add multiple-inclusion protection to capture_errs.h. svn path=/trunk/; revision=32803
Diffstat (limited to 'capture_errs.h')
-rw-r--r--capture_errs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/capture_errs.h b/capture_errs.h
index 80c4c2c5aa..a9f2f51dde 100644
--- a/capture_errs.h
+++ b/capture_errs.h
@@ -23,7 +23,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#ifdef HAVE_LIBPCAP
+#ifndef __CAPTURE_ERRS_H__
+#define __CAPTURE_ERRS_H__
#ifdef _WIN32
/* error message, if WinPcap couldn't be loaded */
@@ -31,4 +32,4 @@
extern char *cant_load_winpcap_err(const char *app_name);
#endif /* _WIN32 */
-#endif /* HAVE_LIBPCAP */
+#endif /* __CAPTURE_ERRS_H__ */