summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/bsd-snprintf.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-08-06 13:25:24 +0200
committerDarren Tucker <dtucker@zip.com.au>2006-08-06 13:25:24 +0200
commitf78fb54412e34c2647c1bc9f895af00620f42730 (patch)
treef08dec769241c7b14420ba962fd23fe0f08c1c15 /openbsd-compat/bsd-snprintf.c
parent - (dtucker) [defines.h] With the includes.h changes we no longer get the (diff)
downloadopenssh-f78fb54412e34c2647c1bc9f895af00620f42730.tar.xz
openssh-f78fb54412e34c2647c1bc9f895af00620f42730.zip
- (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 @@
#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
+#include <ctype.h>
+#include <stdlib.h>
#include <string.h>
#ifdef HAVE_LONG_DOUBLE