aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/buffer.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-07-31 04:15:58 +0000
committerGuy Harris <guy@alum.mit.edu>2000-07-31 04:15:58 +0000
commit0b406c38ba81e8e76af239ecd15ac8b31a198639 (patch)
treee19f37fcedf837c770c2cf9145d8ec5af2df45b2 /wiretap/buffer.c
parent5fb74c28df29428de7f62b1be81d553457e406bf (diff)
In "buffer.h", include <winsock.h> if we have it, so that "u_char" is
defined on Win32 systems - it's not defined in <sys/types.h> on those systems. In "buffer.c", include "config.h", to cause HAVE_WINSOCK_H to be defined, on systems that have it, so that we include it in <buffer.h>. svn path=/trunk/; revision=2187
Diffstat (limited to 'wiretap/buffer.c')
-rw-r--r--wiretap/buffer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/wiretap/buffer.c b/wiretap/buffer.c
index 20b970b59b..b513d39377 100644
--- a/wiretap/buffer.c
+++ b/wiretap/buffer.c
@@ -1,6 +1,6 @@
/* buffer.c
*
- * $Id: buffer.c,v 1.8 2000/07/26 00:20:08 guy Exp $
+ * $Id: buffer.c,v 1.9 2000/07/31 04:15:58 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
@@ -20,7 +20,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
-
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <stdio.h>
#include <stdlib.h>