summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-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
5 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 60a1fd75..1efc7ba3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
2006086
- (dtucker) [defines.h] With the includes.h changes we no longer get the
name clash on "YES" so we can remove the workaround for it.
+ - (dtucker) [openbsd-compat/{bsd-asprintf.c,bsd-openpty.c,bsd-snprintf.c,
+ glob.c}] Include stdlib.h for malloc and friends in compat code.
20060805
- (djm) OpenBSD CVS Sync
@@ -5198,4 +5200,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
-$Id: ChangeLog,v 1.4475 2006/08/06 11:23:27 dtucker Exp $
+$Id: ChangeLog,v 1.4476 2006/08/06 11:25:24 dtucker Exp $
diff --git a/openbsd-compat/bsd-asprintf.c b/openbsd-compat/bsd-asprintf.c
index 1178296f..67480139 100644
--- a/openbsd-compat/bsd-asprintf.c
+++ b/openbsd-compat/bsd-asprintf.c
@@ -23,6 +23,7 @@
#include <errno.h>
#include <stdarg.h>
+#include <stdlib.h>
#ifndef VA_COPY
# ifdef HAVE_VA_COPY
diff --git a/openbsd-compat/bsd-openpty.c b/openbsd-compat/bsd-openpty.c
index a2f2fda6..c0cde6b1 100644
--- a/openbsd-compat/bsd-openpty.c
+++ b/openbsd-compat/bsd-openpty.c
@@ -37,6 +37,8 @@
#include <sys/types.h>
+#include <stdlib.h>
+
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
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
diff --git a/openbsd-compat/glob.c b/openbsd-compat/glob.c
index 90723535..ec16b110 100644
--- a/openbsd-compat/glob.c
+++ b/openbsd-compat/glob.c
@@ -37,10 +37,12 @@
#include <sys/types.h>
#include <sys/stat.h>
+
#include <dirent.h>
#include <ctype.h>
#include <errno.h>
#include <pwd.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>