]> granicus.if.org Git - sudo/commitdiff
Some older systems have inttypes.h but not stdint.h
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 1 Apr 2013 14:23:18 +0000 (10:23 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 1 Apr 2013 14:23:18 +0000 (10:23 -0400)
compat/snprintf.c

index aa4a832cf8f7d71aa3ecec90edfae679cb6f03b8..e6305acea1b9542ba0bb7fdd0e7ab8789b2d09b2 100644 (file)
 #  include <stdlib.h>
 # endif
 #endif /* STDC_HEADERS */
-#ifdef HAVE_STDINT_H
+#if defined(HAVE_STDINT_H)
 # include <stdint.h>
+#elif defined(HAVE_INTTYPES_H)
+# include <inttypes.h>
 #endif
 #ifdef HAVE_STRING_H
 # if defined(HAVE_MEMORY_H) && !defined(STDC_HEADERS)