aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpciaccess/fix-includes.patch
blob: 6685ee80f4188d7bd86f5035629917990df51631 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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.