mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-15 15:57:13 +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:
parent
7eca23930b
commit
311a359c3f
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user