2013-09-26 17:14:40 +02:00

39 lines
1016 B
Plaintext

$NetBSD: patch-aa,v 1.4 2011/03/06 03:47:27 dholland Exp $
Header fixes.
--- agent/filter/logfile.c.orig 2001-03-17 18:31:21.000000000 +0000
+++ agent/filter/logfile.c
@@ -45,6 +45,10 @@
#include "config.h"
#include "portable.h"
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <errno.h>
+#include <time.h>
#include <sys/types.h>
#ifdef I_TIME
@@ -71,6 +75,9 @@
#include <sys/fcntl.h> /* Try this one in last resort */
#endif
#endif
+#ifdef I_SYS_PARAM
+# include <sys/param.h>
+#endif
#include "confmagic.h"
@@ -86,10 +93,7 @@ private int add_errcode(); /* Print th
public char *progname = "ram"; /* Program name */
public Pid_t progpid = 0; /* Program PID */
-extern Time_t time(); /* Time in seconds since the Epoch */
-extern char *malloc(); /* Memory allocation */
extern char *strsave(); /* Save string in memory */
-extern int errno; /* System error report variable */
/* VARARGS2 */
public void add_log(level, format, arg1, arg2, arg3, arg4, arg5)