mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: nfs-utils: Adapt to changes in glibc 2.26.
* gnu/packages/patches/nfs-utils-missing-headers.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/nfs.scm (nfs-utils)[source]: Use it.
This commit is contained in:
parent
03674a7ca2
commit
606e246861
3 changed files with 22 additions and 1 deletions
19
gnu/packages/patches/nfs-utils-missing-headers.patch
Normal file
19
gnu/packages/patches/nfs-utils-missing-headers.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
Fix compilation failure with glibc 2.26 caused by missing type
|
||||
declarations:
|
||||
|
||||
------
|
||||
rpc.c: In function ‘nsm_recv_getport’:
|
||||
rpc.c:469:13: error: ‘UINT16_MAX’ undeclared (first use in this function)
|
||||
if (port > UINT16_MAX) {
|
||||
------
|
||||
|
||||
--- a/support/nsm/rpc.c.orig 2016-08-03 20:25:15.000000000 +0200
|
||||
+++ b/support/nsm/rpc.c 2017-08-26 07:41:11.884000000 +0200
|
||||
@@ -40,6 +40,7 @@
|
||||
|
||||
#include <time.h>
|
||||
#include <stdbool.h>
|
||||
+#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
Loading…
Add table
Add a link
Reference in a new issue