aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rpm/rpm-uclibc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/rpm/rpm-uclibc.patch')
-rw-r--r--testing/rpm/rpm-uclibc.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/rpm/rpm-uclibc.patch b/testing/rpm/rpm-uclibc.patch
new file mode 100644
index 0000000000..0d07345c60
--- /dev/null
+++ b/testing/rpm/rpm-uclibc.patch
@@ -0,0 +1,30 @@
+--- rpm-4.10.2.orig/misc/fts.c
++++ rpm-4.10.2/misc/fts.c
+@@ -42,6 +42,11 @@
+ #include <string.h>
+ #include <unistd.h>
+ #else
++#include "system.h"
++#include <stdlib.h>
++#include <string.h>
++#include <errno.h>
++#include "misc/fts.h"
+ #if defined(hpux)
+ # define _INCLUDE_POSIX_SOURCE
+ # define __errno_location() (&errno)
+@@ -61,11 +66,10 @@
+ # 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"
++#if defined(__UCLIBC__)
++# define _STAT_VER 0
++# define __fxstat64(_stat_ver, _fd, _sbp) fstat64((_fd), (_sbp))
++#endif
+ # define __set_errno(val) (*__errno_location ()) = (val)
+ # define __open open
+ # define __close close