libpciaccess: unbreak musl build; patches from Alpine.

This commit is contained in:
Juan RP 2015-04-19 12:19:13 +02:00
parent a5ba00f47f
commit adb22b2977
3 changed files with 33 additions and 1 deletions

View file

@ -0,0 +1,11 @@
--- src/linux_sysfs.c
+++ src/linux_sysfs.c
@@ -46,7 +46,7 @@
#include <errno.h>
#include <limits.h>
-#if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
+#if defined(__i386__) || defined(__x86_64__)
#include <sys/io.h>
#else
#define inb(x) -1

View file

@ -0,0 +1,21 @@
--- src/linux_sysfs.c
+++ 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>
--- src/pciaccess_private.h
+++ 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.

View file

@ -1,7 +1,7 @@
# Template build file for 'libpciaccess'.
pkgname=libpciaccess
version=0.13.3
revision=1
revision=2
build_style=gnu-configure
short_desc="X11 PCI Access library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"