libnfs: fix build
Since kernel-libc-headers was updated to 4.9.8 the macros `makedev`, `major` and `minor` are defined in the include file `sys/sysmacros.h`. The definitions in `sys/types.h` are obsoleted and will be removed soon. This fix moves the `#include <sys/sysmacros.h>` after the `#include <sys/types.h>`. Closes #5704
This commit is contained in:
parent
f7f9d37b14
commit
8f3b5b9384
2 changed files with 26 additions and 1 deletions
25
srcpkgs/libnfs/patches/sysmacros_makedev.patch
Normal file
25
srcpkgs/libnfs/patches/sysmacros_makedev.patch
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
--- lib/libnfs.c 2016-10-09 20:23:11.000000000 +0200
|
||||||
|
+++ lib/libnfs.c 2017-02-09 22:11:03.882598292 +0100
|
||||||
|
@@ -64,14 +64,6 @@
|
||||||
|
#include <strings.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#ifdef MAJOR_IN_MKDEV
|
||||||
|
-#include <sys/mkdev.h>
|
||||||
|
-#endif
|
||||||
|
-
|
||||||
|
-#ifdef MAJOR_IN_SYSMACROS
|
||||||
|
-#include <sys/sysmacros.h>
|
||||||
|
-#endif
|
||||||
|
-
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
@@ -82,6 +74,7 @@
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
+#include <sys/sysmacros.h>
|
||||||
|
#include "libnfs-zdr.h"
|
||||||
|
#include "slist.h"
|
||||||
|
#include "libnfs.h"
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'libnfs'
|
# Template file for 'libnfs'
|
||||||
pkgname=libnfs
|
pkgname=libnfs
|
||||||
version=1.11.0
|
version=1.11.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="${pkgname}-${pkgname}-${version}"
|
wrksrc="${pkgname}-${pkgname}-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="libtool pkg-config automake"
|
hostmakedepends="libtool pkg-config automake"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue