summaryrefslogtreecommitdiff
path: root/security/super/files/patch-localsys.h
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-07-28 09:00:54 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-07-28 09:00:54 +0000
commit23529091f431ff183231a9028dc1c2def1b6a3c1 (patch)
tree9e963c5ad87ac1c07c8108880ba8f9a11959480c /security/super/files/patch-localsys.h
parentFix an annoying bug of non-working scaling (-w/-h and -x/-y options) in (diff)
- Add LICENSE_FILEs
- Switch to options helpers - Regenerate patches with `make makepatch`
Notes
Notes: svn path=/head/; revision=419207
Diffstat (limited to 'security/super/files/patch-localsys.h')
-rw-r--r--security/super/files/patch-localsys.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/security/super/files/patch-localsys.h b/security/super/files/patch-localsys.h
new file mode 100644
index 000000000000..05f1f836d77b
--- /dev/null
+++ b/security/super/files/patch-localsys.h
@@ -0,0 +1,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>