blob: d7fd10f9e96e482959bcb18bfc5472beb6bd25f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
$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)
|