diff options
author | Uwe Girlich <Uwe.Girlich@philosys.de> | 2002-07-19 12:59:21 +0000 |
---|---|---|
committer | Uwe Girlich <Uwe.Girlich@philosys.de> | 2002-07-19 12:59:21 +0000 |
commit | 372fe49be860ff185264395bdb75740d7d931801 (patch) | |
tree | b3cc8d2f8fffef1207cb8faec07b2f1b24b19c23 /snprintf.h | |
parent | 2b39f15499ac6580ef12ec15cee192b56a88fbc0 (diff) | |
download | wireshark-372fe49be860ff185264395bdb75740d7d931801.tar.gz wireshark-372fe49be860ff185264395bdb75740d7d931801.tar.bz2 wireshark-372fe49be860ff185264395bdb75740d7d931801.zip |
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
Diffstat (limited to 'snprintf.h')
-rw-r--r-- | snprintf.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 <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); |