From 16d2f65fa4ed0dd335bfdd197a35ccb4ad3281f6 Mon Sep 17 00:00:00 2001 From: John Ellson Date: Fri, 11 Nov 2011 14:28:33 -0500 Subject: [PATCH] add explicit include of stdint.h for ptrdiff_t --- ast_common.h.in | 8 ++++++++ lib/sfio/sfhdr.h | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/ast_common.h.in b/ast_common.h.in index 95f790021..88affebbd 100644 --- a/ast_common.h.in +++ b/ast_common.h.in @@ -57,6 +57,14 @@ # define _sys_stat 1 #endif +#ifdef HAVE_STRING_H +# define _hdr_string 1 +#endif + +#ifdef HAVE_STDINT_H +# define _hdr_stdint 1 +#endif + #ifdef HAVE_STDARG_H # define _hdr_stdarg 1 #endif diff --git a/lib/sfio/sfhdr.h b/lib/sfio/sfhdr.h index f6daf8f97..d63a5f34a 100644 --- a/lib/sfio/sfhdr.h +++ b/lib/sfio/sfhdr.h @@ -95,6 +95,10 @@ extern "C" { #include #endif +#if _hdr_stdint +#include +#endif + #if _hdr_time #include #endif -- 2.40.0