freebsd-ports/security/super/files/patch-localsys.h
Renato Botelho 99fa9a1472 - Update security/super to 3.30.1
- Re-generate patches with make makepatch
- Pass maintainership to submitter

PR:		230061
Submitted by:	Vinícius Zavam <egypcio@googlemail.com>
2018-07-26 23:28:32 +00:00

30 lines
551 B
C

--- localsys.h.orig 2018-05-21 22:43:28 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,8 +293,10 @@ 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