Include sys/types.h to provide the type size_t, which is needed
authorgirlich <girlich@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 19 Jul 2002 12:59:21 +0000 (12:59 +0000)
committergirlich <girlich@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 19 Jul 2002 12:59:21 +0000 (12:59 +0000)
further down in this file but must not be defined yet in the C source,
which includes this header file.
Example: without this change, packet-dcerpc-samr.c 1.51 could not be
compiled under SINIX-M.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5894 f5534014-38df-0310-8fa8-9805f1628bb7

snprintf.h

index b3928859fe287d5553df404dbd14a8bb6b69b7e6..1b1f7fb08712068a3589cc60df8cd01141525042 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: snprintf.h,v 1.6 2001/07/22 10:25:48 guy Exp $
+ * $Id: snprintf.h,v 1.7 2002/07/19 12:59:21 girlich Exp $
  */
 
 #ifndef __ETHEREAL_SNPRINTF_H__
 # include <varargs.h>
 #endif
 
+/* for size_t */
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+
 extern int vsnprintf(char *string, size_t length, const char * format,
   va_list args);