1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

if stdlib.h exists, malloc.h should not be included (thus stop OpenBSD

complaints)
This commit is contained in:
Daniel Stenberg 2000-03-16 11:40:15 +00:00
parent ab05797500
commit 14253f34f4

View File

@ -29,7 +29,7 @@
#include <sys/types.h>
#include <sys/malloc.h>
#else
#include <malloc.h>
#endif
#include <string.h>
#include <stdio.h>
@ -37,6 +37,12 @@
#if HAVE_STDLIB_H
# include <stdlib.h> /* for `free'; used by Bison 1.27 */
#else
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#endif
#if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII))