#if defined(HAVE_WCTYPE_H)
#include <wctype.h>
#endif
+#if defined(HAVE_LIMITS_H)
+#include <limits.h>
+#endif
#ifndef lint
-FILE_RCSID("@(#)$File: funcs.c,v 1.41 2008/05/16 14:25:01 christos Exp $")
+FILE_RCSID("@(#)$File: funcs.c,v 1.42 2008/07/03 15:48:18 christos Exp $")
#endif /* lint */
#ifndef SIZE_MAX
#ifdef QUICK
#include <sys/mman.h>
#endif
+#ifdef HAVE_LIMITS_H
#include <limits.h> /* for PIPE_BUF */
+#endif
#if defined(HAVE_UTIMES)
# include <sys/time.h>
#include "patchlevel.h"
#ifndef lint
-FILE_RCSID("@(#)$File: magic.c,v 1.50 2008/02/19 00:58:59 rrt Exp $")
+FILE_RCSID("@(#)$File: magic.c,v 1.51 2008/05/16 14:25:01 christos Exp $")
#endif /* lint */
#ifndef PIPE_BUF
you use strange formats.
*/
-
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
+#ifdef HAVE_LIMITS_H
#include <limits.h>
+#endif
#define ALLOC_CHUNK 2048
#define ALLOC_SECURITY_MARGIN 1024 /* big value because some platforms have very big 'G' exponent */