summaryrefslogtreecommitdiff
path: root/user/pciutils/pread.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-15 23:14:58 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-15 23:14:58 -0500
commitbc67c03b9689bdd3015d63ce401d0af4b835abc9 (patch)
tree2660faffaed5377a21573684cdd2654f2f3d94f2 /user/pciutils/pread.patch
parente4c9aef3202e2b476c8573acbf45361afe69ac60 (diff)
downloadpackages-bc67c03b9689bdd3015d63ce401d0af4b835abc9.tar.gz
packages-bc67c03b9689bdd3015d63ce401d0af4b835abc9.tar.bz2
packages-bc67c03b9689bdd3015d63ce401d0af4b835abc9.tar.xz
packages-bc67c03b9689bdd3015d63ce401d0af4b835abc9.zip
user/pciutils: pull in, bump, fix
Diffstat (limited to 'user/pciutils/pread.patch')
-rw-r--r--user/pciutils/pread.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/user/pciutils/pread.patch b/user/pciutils/pread.patch
new file mode 100644
index 000000000..6e0843a6c
--- /dev/null
+++ b/user/pciutils/pread.patch
@@ -0,0 +1,13 @@
+--- ./lib/pread.h.orig
++++ ./lib/pread.h
+@@ -12,8 +12,8 @@
+ * don't define it.
+ */
+
+-#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ > 0
+-/* glibc 2.1 or newer -> pread/pwrite supported automatically */
++#if (defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ > 0) || (_POSIX_VERSION >= 200809L)
++ /* glibc 2.1 or newer or posix 2008 -> pread/pwrite supported automatically */
+
+ #elif defined(i386) && defined(__GLIBC__)
+ /* glibc 2.0 on i386 -> call syscalls directly */