aboutsummaryrefslogtreecommitdiff
path: root/archivers/pxz/files/patch-pxz.c
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/pxz/files/patch-pxz.c')
-rw-r--r--archivers/pxz/files/patch-pxz.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/archivers/pxz/files/patch-pxz.c b/archivers/pxz/files/patch-pxz.c
index 8878d8ea28c5..4f09c008714b 100644
--- a/archivers/pxz/files/patch-pxz.c
+++ b/archivers/pxz/files/patch-pxz.c
@@ -1,26 +1,24 @@
---- pxz.c.orig 2010-11-23 10:35:25.720939440 +0100
-+++ pxz.c 2010-11-23 10:46:28.910235910 +0100
-@@ -21,11 +21,17 @@
+--- pxz.c.orig 2014-10-18 17:06:27 UTC
++++ pxz.c
+@@ -23,11 +23,17 @@
#include <string.h>
#include <stdio.h>
--#include <stdio_ext.h>
+#ifndef __FreeBSD__
-+#include <stdio_ext.h>
+ #include <stdio_ext.h>
+#endif
#include <stdlib.h>
#include <inttypes.h>
#include <unistd.h>
--#include <error.h>
+#ifdef __FreeBSD__
+#include <err.h>
+#else
-+#include <error.h>
+ #include <error.h>
+#endif
#include <errno.h>
#include <sys/stat.h>
#include <sys/mman.h>
-@@ -40,6 +46,10 @@
+@@ -42,6 +48,10 @@
#include <omp.h>
#endif
@@ -31,7 +29,7 @@
#ifndef XZ_BINARY
#define XZ_BINARY "xz"
#endif
-@@ -119,6 +129,13 @@
+@@ -121,6 +131,13 @@ const struct option long_opts[] = {
{ NULL, 0, NULL, 0 }
};