summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-snprintf.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-08-06 21:25:24 +1000
committerDarren Tucker <dtucker@zip.com.au>2006-08-06 21:25:24 +1000
commitf78fb54412e34c2647c1bc9f895af00620f42730 (patch)
treef08dec769241c7b14420ba962fd23fe0f08c1c15 /openbsd-compat/bsd-snprintf.c
parent32ab2ae3f352447537c959c2df785b8160a642d2 (diff)
- (dtucker) [openbsd-compat/{bsd-asprintf.c,bsd-openpty.c,bsd-snprintf.c,
glob.c}] Include stdlib.h for malloc and friends in compat code.
Diffstat (limited to 'openbsd-compat/bsd-snprintf.c')
-rw-r--r--openbsd-compat/bsd-snprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-snprintf.c b/openbsd-compat/bsd-snprintf.c
index 9fdf4d3f..47cbcff6 100644
--- a/openbsd-compat/bsd-snprintf.c
+++ b/openbsd-compat/bsd-snprintf.c
@@ -108,6 +108,8 @@
#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
+#include <ctype.h>
+#include <stdlib.h>
#include <string.h>
#ifdef HAVE_LONG_DOUBLE