summaryrefslogtreecommitdiff
path: root/www/sarg/files/patch-util.c
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2020-02-11 12:57:42 +0000
committerRenato Botelho <garga@FreeBSD.org>2020-02-11 12:57:42 +0000
commit4ec2641eb1050e50a57f963ef8fabc2625693618 (patch)
tree6afbf1dcc06bbc6388972b4bdf4720b61f21e2c0 /www/sarg/files/patch-util.c
parentFix indentation of CARGO_CRATES (diff)
www/sarg: Update to 2.4.0
Sponsored by: Rubicon Communications, LLC (Netgate)
Notes
Notes: svn path=/head/; revision=525812
Diffstat (limited to 'www/sarg/files/patch-util.c')
-rw-r--r--www/sarg/files/patch-util.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/www/sarg/files/patch-util.c b/www/sarg/files/patch-util.c
new file mode 100644
index 000000000000..b030e98fab20
--- /dev/null
+++ b/www/sarg/files/patch-util.c
@@ -0,0 +1,21 @@
+--- util.c.orig 2020-02-11 12:29:43 UTC
++++ util.c
+@@ -27,6 +27,9 @@
+ // #define LEGACY_MY_ATOLL
+ // #define LEGACY_TESTVALIDUSERCHAR
+
++#include <sys/param.h>
++#include <sys/stat.h>
++
+ #include "include/conf.h"
+ #include "include/defs.h"
+
+@@ -402,7 +405,7 @@ int is_absolute(const char *path)
+
+ int PortableMkDir(const char *path,int mode)
+ {
+-#if defined(__linux__)
++#if defined(__linux__) || defined(__FreeBSD__)
+ int mkerror=mkdir(path,mode);
+ #else //mingw
+ (void)mode;