diff options
Diffstat (limited to 'main/libpciaccess/fix-includes.patch')
-rw-r--r-- | main/libpciaccess/fix-includes.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/main/libpciaccess/fix-includes.patch b/main/libpciaccess/fix-includes.patch new file mode 100644 index 000000000..6685ee80f --- /dev/null +++ b/main/libpciaccess/fix-includes.patch @@ -0,0 +1,21 @@ +--- libpciaccess-0.13.2.orig/src/linux_sysfs.c ++++ libpciaccess-0.13.2/src/linux_sysfs.c +@@ -44,6 +44,7 @@ + #include <sys/mman.h> + #include <dirent.h> + #include <errno.h> ++#include <limits.h> + + #if defined(__i386__) || defined(__x86_64__) || defined(__arm__) + #include <sys/io.h> +--- libpciaccess-0.13.2.orig/src/pciaccess_private.h ++++ libpciaccess-0.13.2/src/pciaccess_private.h +@@ -42,7 +42,7 @@ + * know of any OS we support where this isn't available in a sufficiently + * new version, so warn unconditionally. + */ +-#include <sys/fcntl.h> ++#include <fcntl.h> + + #ifndef O_CLOEXEC + #warning O_CLOEXEC not available, please upgrade. |