summaryrefslogtreecommitdiff
path: root/openbsd-compat
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
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')
-rw-r--r--openbsd-compat/bsd-asprintf.c1
-rw-r--r--openbsd-compat/bsd-openpty.c2
-rw-r--r--openbsd-compat/bsd-snprintf.c2
-rw-r--r--openbsd-compat/glob.c2
4 files changed, 7 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-asprintf.c b/openbsd-compat/bsd-asprintf.c
index 1178296f8..67480139e 100644
--- a/openbsd-compat/bsd-asprintf.c
+++ b/openbsd-compat/bsd-asprintf.c
@@ -23,6 +23,7 @@
23 23
24#include <errno.h> 24#include <errno.h>
25#include <stdarg.h> 25#include <stdarg.h>
26#include <stdlib.h>
26 27
27#ifndef VA_COPY 28#ifndef VA_COPY
28# ifdef HAVE_VA_COPY 29# ifdef HAVE_VA_COPY
diff --git a/openbsd-compat/bsd-openpty.c b/openbsd-compat/bsd-openpty.c
index a2f2fda60..c0cde6b1f 100644
--- a/openbsd-compat/bsd-openpty.c
+++ b/openbsd-compat/bsd-openpty.c
@@ -37,6 +37,8 @@
37 37
38#include <sys/types.h> 38#include <sys/types.h>
39 39
40#include <stdlib.h>
41
40#ifdef HAVE_SYS_STAT_H 42#ifdef HAVE_SYS_STAT_H
41# include <sys/stat.h> 43# include <sys/stat.h>
42#endif 44#endif
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
diff --git a/openbsd-compat/glob.c b/openbsd-compat/glob.c
index 907235353..ec16b1108 100644
--- a/openbsd-compat/glob.c
+++ b/openbsd-compat/glob.c
@@ -37,10 +37,12 @@
37 37
38#include <sys/types.h> 38#include <sys/types.h>
39#include <sys/stat.h> 39#include <sys/stat.h>
40
40#include <dirent.h> 41#include <dirent.h>
41#include <ctype.h> 42#include <ctype.h>
42#include <errno.h> 43#include <errno.h>
43#include <pwd.h> 44#include <pwd.h>
45#include <stdlib.h>
44#include <string.h> 46#include <string.h>
45#include <unistd.h> 47#include <unistd.h>
46 48