- (dtucker) [openbsd-compat/{bsd-asprintf.c,bsd-openpty.c,bsd-snprintf.c,

glob.c}] Include stdlib.h for malloc and friends in compat code.
This commit is contained in:
Darren Tucker 2006-08-06 21:25:24 +10:00
parent 32ab2ae3f3
commit f78fb54412
5 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,8 @@
2006086 2006086
- (dtucker) [defines.h] With the includes.h changes we no longer get the - (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. 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 20060805
- (djm) OpenBSD CVS Sync - (djm) OpenBSD CVS Sync
@ -5198,4 +5200,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu - (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 $

View File

@ -23,6 +23,7 @@
#include <errno.h> #include <errno.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h>
#ifndef VA_COPY #ifndef VA_COPY
# ifdef HAVE_VA_COPY # ifdef HAVE_VA_COPY

View File

@ -37,6 +37,8 @@
#include <sys/types.h> #include <sys/types.h>
#include <stdlib.h>
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
#endif #endif

View File

@ -108,6 +108,8 @@
#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF) #if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
#include <ctype.h>
#include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef HAVE_LONG_DOUBLE #ifdef HAVE_LONG_DOUBLE

View File

@ -37,10 +37,12 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <dirent.h> #include <dirent.h>
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#include <pwd.h> #include <pwd.h>
#include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>