diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-18 16:04:37 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-18 16:04:37 +0000 |
commit | 07845401392b9e9daddccc0b4e95258716f0f3f7 (patch) | |
tree | 4d55e1df882b7c2835c5d92912fb2c8ad1d8a0cc /main/pciutils/pread.patch | |
parent | c2467b77226da28ad9eebe9863b92f1c9f08b7c7 (diff) | |
download | aports-07845401392b9e9daddccc0b4e95258716f0f3f7.tar.bz2 aports-07845401392b9e9daddccc0b4e95258716f0f3f7.tar.xz |
main/pciutils: force use of pread by checking for posix version
Diffstat (limited to 'main/pciutils/pread.patch')
-rw-r--r-- | main/pciutils/pread.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/pciutils/pread.patch b/main/pciutils/pread.patch new file mode 100644 index 0000000000..6e0843a6cc --- /dev/null +++ b/main/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 */ |