Blame view

buildroot/buildroot-2016.08.1/package/libpciaccess/0001-limits_h.patch 833 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  Fix compilation error with musl-based toolchain
  
  linux_sysfs.c:751:15: error: 'PATH_MAX' undeclared (first use in this function)
       char name[PATH_MAX];
  
  Patch applied upstream:
  http://cgit.freedesktop.org/xorg/lib/libpciaccess/commit/?id=8ea3af620a2d4ad5648917b4a0ef2b23ff566774
  
  Signed-off-by: Felix Janda <felix.janda at posteo.de>
  Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  
  diff -uNr libpciaccess-0.13.3.org/src/linux_sysfs.c libpciaccess-0.13.3/src/linux_sysfs.c
  --- libpciaccess-0.13.3.org/src/linux_sysfs.c	2015-02-04 00:59:14.000000000 +0100
  +++ libpciaccess-0.13.3/src/linux_sysfs.c	2015-04-10 21:57:35.000000000 +0200
  @@ -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>