1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-14 15:36:34 +00:00

Include stdlib.h for malloc. Don't try to use valloc() on MacOS

This commit is contained in:
Nick Briggs 2017-05-24 15:37:03 -07:00
parent 0d856f3bdc
commit e716766e30

View File

@ -24,6 +24,7 @@ static char *id = "$Id: ldsout.c,v 1.4 2001/12/26 22:17:02 sybalsky Exp $ Copyri
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#ifndef DOS
#include <sys/file.h>
@ -64,19 +65,12 @@ extern int errno;
int Storage_expanded; /* T or NIL */
/* RISCOS doesn't have valloc, and malloc works OK there. */
#ifdef SYSVONLY
/* RISCOS, OSF1 and MACOSX don't have valloc, and malloc works OK there. */
#if defined(SYSVONLY) || defined(OSF1) || defined(MACOSX)
#define valloc malloc
#endif /* SYSVONLY */
#ifdef OSF1
#define valloc malloc
#endif /* OSF1 */
#else
char *valloc();
#endif /* SYSVONLY || OSF1 */
/************************************************************************/
/* */