From 372fe49be860ff185264395bdb75740d7d931801 Mon Sep 17 00:00:00 2001 From: Uwe Girlich Date: Fri, 19 Jul 2002 12:59:21 +0000 Subject: Include sys/types.h to provide the type size_t, which is needed 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. svn path=/trunk/; revision=5894 --- snprintf.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'snprintf.h') diff --git a/snprintf.h b/snprintf.h index b3928859fe..1b1f7fb087 100644 --- a/snprintf.h +++ b/snprintf.h @@ -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__ @@ -11,6 +11,11 @@ # include #endif +/* for size_t */ +#ifdef HAVE_SYS_TYPES_H +# include +#endif + extern int vsnprintf(char *string, size_t length, const char * format, va_list args); -- cgit v1.2.3