libpciaccess: fix compilation error on i686/x86_64
This commit is contained in:
parent
3bfb4f6289
commit
50317bda57
|
@ -1,6 +1,15 @@
|
||||||
diff -uNr libpciaccess-0.16/src/linux_sysfs.c libpciaccess-0.16.mod/src/linux_sysfs.c
|
diff -uNr libpciaccess-0.16/src/linux_sysfs.c libpciaccess-0.16.mod/src/linux_sysfs.c
|
||||||
--- libpciaccess-0.16/src/linux_sysfs.c 2019-07-17 19:25:27.000000000 +0300
|
--- libpciaccess-0.16/src/linux_sysfs.c 2019-07-17 19:25:27.000000000 +0300
|
||||||
+++ libpciaccess-0.16.mod/src/linux_sysfs.c 2019-07-23 00:31:23.703286583 +0300
|
+++ libpciaccess-0.16.mod/src/linux_sysfs.c 2019-07-23 01:36:18.607882465 +0300
|
||||||
|
@@ -50,7 +50,7 @@
|
||||||
|
#include <dirent.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
|
-#if defined(__i386__) || defined(__x86_64__)
|
||||||
|
+#if (defined(__i386__) || defined(__x86_64__)) && !defined(__ANDROID__)
|
||||||
|
#include <sys/io.h>
|
||||||
|
#else
|
||||||
|
#define inb(x) -1
|
||||||
@@ -462,7 +462,7 @@
|
@@ -462,7 +462,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,3 +28,12 @@ diff -uNr libpciaccess-0.16/src/linux_sysfs.c libpciaccess-0.16.mod/src/linux_sy
|
||||||
|
|
||||||
/* If zero bytes were written, then we assume it's the end of the
|
/* If zero bytes were written, then we assume it's the end of the
|
||||||
* config file.
|
* config file.
|
||||||
|
@@ -890,7 +890,7 @@
|
||||||
|
} else {
|
||||||
|
ret = inl(port + handle->base);
|
||||||
|
}
|
||||||
|
-
|
||||||
|
+
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue