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
|
@ -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'
|
||||
pkgname=libnfs
|
||||
version=1.11.0
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="${pkgname}-${pkgname}-${version}"
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="libtool pkg-config automake"
|
||||
|
|
Loading…
Reference in New Issue