1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-27 12:22:24 +00:00

Add include files necessary for SunOS5 (Solaris 11) compilation.

Remove incorrect definition of malloc()

	modified:   src/dlpi.c
This commit is contained in:
Nick Briggs
2020-07-09 03:28:50 -07:00
parent 7eca23930b
commit 311a359c3f

View File

@@ -65,6 +65,10 @@ static char *RCSid =
#include <sys/dlpi.h>
#ifdef OS5
#include <sys/bufmod.h>
#include <unistd.h>
#include <stdlib.h>
#include <stropts.h>
#include <malloc.h>
#endif
#include <sys/socket.h>
#include <sys/sockio.h>
@@ -594,7 +598,6 @@ static void sigalrm() { (void)fprintf(stderr, "dlpi: timeout\n"); }
char *savestr(char *s)
{
char *t;
char *malloc();
if ((t = malloc(strlen(s) + 1)) == NULL) {
(void)fprintf(stderr, "%s: out of memory.\n", pname);