summaryrefslogtreecommitdiff
path: root/security/super/files/patch-localsys.h
blob: 05f1f836d77bf7cde7068daa5eae421dd3ec48b2 (plain) (blame)
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
--- localsys.h.orig	2007-12-20 19:14:53 UTC
+++ localsys.h
@@ -16,14 +16,14 @@
 #ifndef LOCALSYS_H
 #define LOCALSYS_H
 
-#include "config.h"
-
 #include <stdio.h>
 #include <ctype.h>
 #include <fcntl.h>
 #include <pwd.h>
 #include <grp.h>
 
+#include "config.h"
+
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
@@ -293,9 +293,11 @@ extern int sysinfo();
 #include <unistd.h>
 #endif
 
+#ifndef __FreeBSD__	/* FBSD has a malloc.h that tells people to obey C89. */
 #ifdef HAVE_MALLOC_H
 #include <malloc.h>
 #endif
+#endif
 
 #ifdef HAVE_SYSLOG_H
 #include <syslog.h>