libpciaccess: fix compilation on musl

This commit is contained in:
John Regan 2015-05-04 16:58:59 -05:00
parent 7dc491f7b8
commit b7f3cb1b53
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff --git src/linux_sysfs.c src/linux_sysfs.c
index 50d94cf..7bc5600 100644
--- src/linux_sysfs.c
+++ src/linux_sysfs.c
@@ -48,6 +48,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>

View File

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