Commit 209775b6 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Test HAVE_STDDEF_H.

Include sys/types.h.
Include stdio.h unless we got NULL from somewhere else.
parent 8d5641c7
/* /*
* $Id: zmalloc.c,v 1.9 1993/10/12 16:20:58 ceder Exp $ * $Id: zmalloc.c,v 1.10 1993/10/16 17:22:44 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association. * Copyright (C) 1991 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -48,9 +48,12 @@ ...@@ -48,9 +48,12 @@
*/ */
static char *rcsid = "$Id: zmalloc.c,v 1.9 1993/10/12 16:20:58 ceder Exp $"; static char *rcsid = "$Id: zmalloc.c,v 1.10 1993/10/16 17:22:44 ceder Exp $";
#include <stddef.h> #include <sys/types.h>
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
# include <stdlib.h> # include <stdlib.h>
#endif #endif
...@@ -64,6 +67,9 @@ static char *rcsid = "$Id: zmalloc.c,v 1.9 1993/10/12 16:20:58 ceder Exp $"; ...@@ -64,6 +67,9 @@ static char *rcsid = "$Id: zmalloc.c,v 1.9 1993/10/12 16:20:58 ceder Exp $";
# include <strings.h> # include <strings.h>
/* memory.h and strings.h conflict on some systems. */ /* memory.h and strings.h conflict on some systems. */
#endif /* not STDC_HEADERS and not HAVE_STRING_H */ #endif /* not STDC_HEADERS and not HAVE_STRING_H */
#ifndef NULL
# include <stdio.h>
#endif
#include "compiler.h" #include "compiler.h"
#include "zmalloc.h" #include "zmalloc.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment