commit | f78fb54412e34c2647c1bc9f895af00620f42730 | [log] [tgz] |
---|---|---|
author | Darren Tucker <dtucker@zip.com.au> | Sun Aug 06 21:25:24 2006 +1000 |
committer | Darren Tucker <dtucker@zip.com.au> | Sun Aug 06 21:25:24 2006 +1000 |
tree | f08dec769241c7b14420ba962fd23fe0f08c1c15 | |
parent | 32ab2ae3f352447537c959c2df785b8160a642d2 [diff] [blame] |
- (dtucker) [openbsd-compat/{bsd-asprintf.c,bsd-openpty.c,bsd-snprintf.c, glob.c}] Include stdlib.h for malloc and friends in compat code.
diff --git a/openbsd-compat/bsd-snprintf.c b/openbsd-compat/bsd-snprintf.c index 9fdf4d3..47cbcff 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