The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / nfs-utils / 0004-fix-build-with-uClibc.patch
1 From ff82d4c89d6ca771dea06bbaa06ddf3fed760402 Mon Sep 17 00:00:00 2001
2 From: Peter Korsgaard <jacmet@sunsite.dk>
3 Date: Sat, 10 Nov 2012 18:58:48 +0100
4 Subject: [PATCH] fix build with uClibc
5
6 uClibc doesn't have/need libio.h, so don't include it from sockaddr.h
7
8 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
9 ---
10  support/include/sockaddr.h |    5 ++++-
11  1 file changed, 4 insertions(+), 1 deletion(-)
12
13 diff --git a/support/include/sockaddr.h b/support/include/sockaddr.h
14 index 9af2543..5eef2ec 100644
15 --- a/support/include/sockaddr.h
16 +++ b/support/include/sockaddr.h
17 @@ -20,7 +20,10 @@
18  #ifndef NFS_UTILS_SOCKADDR_H
19  #define NFS_UTILS_SOCKADDR_H
20  
21 -#include <libio.h>
22 +/* uClibc doesn't have/need libio.h */
23 +#ifndef __UCLIBC__
24 +#include <libio.h> 
25 +#endif
26  #include <stdbool.h>
27  #include <sys/socket.h>
28  #include <netinet/in.h>
29 -- 
30 1.7.9.5
31