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 9fdf4d3f0..47cbcff67 100644
--- a/openbsd-compat/bsd-snprintf.c
+++ b/openbsd-compat/bsd-snprintf.c
@@ -108,6 +108,8 @@
108 108
109#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF) 109#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
110 110
111#include <ctype.h>
112#include <stdlib.h>
111#include <string.h> 113#include <string.h>
112 114
113#ifdef HAVE_LONG_DOUBLE 115#ifdef HAVE_LONG_DOUBLE