aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan van Selst <johans@FreeBSD.org>2012-05-31 21:14:41 +0000
committerJohan van Selst <johans@FreeBSD.org>2012-05-31 21:14:41 +0000
commit51d481d8ebd0e19507137fdc317701e8f44afc9c (patch)
tree44a8345de05d7f615c366d079a8e4065c503e874
parent68e1d1d6bac0b47fedea2eb0dc2d1b449e7a973d (diff)
downloadports-51d481d8ebd0e19507137fdc317701e8f44afc9c.tar.gz
ports-51d481d8ebd0e19507137fdc317701e8f44afc9c.zip
Add patch to fix compilation on CURRENT (10.x)
PR; ports/168463 Submitted by: Rodrigo OSORIO <rodrigo@bebik.net>
Notes
Notes: svn path=/head/; revision=297906
-rw-r--r--archivers/rpm4/files/patch-misc_fts.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/archivers/rpm4/files/patch-misc_fts.c b/archivers/rpm4/files/patch-misc_fts.c
new file mode 100644
index 000000000000..c0f2e231a66e
--- /dev/null
+++ b/archivers/rpm4/files/patch-misc_fts.c
@@ -0,0 +1,34 @@
+diff -Nur archivers/rpm4/files/patch-misc_fts.c archivers/rpm4/files/patch-misc_fts.c
+--- archivers/rpm4/files/patch-misc_fts.c 1970-01-01 01:00:00.000000000 +0100
++++ archivers/rpm4/files/patch-misc_fts.c 2012-05-30 14:15:28.000000000 +0200
+@@ -0,0 +1,30 @@
++--- misc/fts.c 2012-04-03 15:53:59.000000000 +0200
+++++ misc/fts.c 2012-05-30 14:07:33.000000000 +0200
++@@ -31,13 +31,14 @@
++ static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
++ #endif /* LIBC_SCCS and not lint */
++
+++#include "system.h"
+++#include "misc/fts.h"
++ #if defined(_LIBC)
++ #include <sys/param.h>
++ #include <include/sys/stat.h>
++ #include <fcntl.h>
++ #include <dirent.h>
++ #include <errno.h>
++-#include "misc/fts.h"
++ #include <stdlib.h>
++ #include <string.h>
++ #include <unistd.h>
++@@ -61,11 +62,9 @@
++ # define _STAT_VER 0
++ # define __fxstat64(_stat_ver, _fd, _sbp) fstat64((_fd), (_sbp))
++ #endif
++-#include "system.h"
++ #include <stdlib.h>
++ #include <string.h>
++ #include <errno.h>
++-#include "misc/fts.h"
++ # define __set_errno(val) (*__errno_location ()) = (val)
++ # define __open open
++ # define __close close \ No newline at end of file