pkgsrc/misc/lile/patches/patch-aa
joerg 2747b739d1 Welcome in the 21st century. errno, malloc and realloc are all
part of ISO C, don't define them manually.
2005-11-10 18:03:21 +00:00

42 lines
886 B
Text

$NetBSD: patch-aa,v 1.6 2005/11/10 18:03:21 joerg Exp $
--- ile.c.orig 1993-06-09 03:12:33.000000000 +0000
+++ ile.c
@@ -2,6 +2,7 @@
/* Copyright message is near the bottom of the file */
#include "config.h"
+#include <signal.h>
/* #define DEBUG /**/
@@ -43,7 +44,7 @@ void setup_action_table();
#include <stdio.h>
#include <fcntl.h>
#include <sgtty.h>
-#include <signal.h>
+#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <pwd.h>
@@ -51,7 +52,7 @@ void setup_action_table();
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/types.h>
-#include <sys/dir.h>
+#include <dirent.h>
#include <sys/file.h>
#include <sys/time.h>
#include <sys/wait.h>
@@ -61,11 +62,6 @@ void setup_action_table();
*/
/* Definitions of system stuff. */
-extern int errno;
-
-long lseek();
-char *malloc();
-char *realloc();
time_t time();
#ifndef TRUE