1 From d1345871b992f9a055c968963967e728da1a7ffb Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Sat, 30 Jan 2016 20:29:06 +0000
4 Subject: [PATCH] nss-myhostname: Check for nss.h presense before use
6 We do not have nss.h on musl e.g. and configury is already checking for
7 nss.h presence, use this to define needed data structures if nss.h is
8 missing on a given libc implementation on a platform
10 include stdint.h for uint32_h definition
12 Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 Upstream-Status: Pending
16 nss-myhostname.c | 20 ++++++++++++++++++++
17 1 file changed, 20 insertions(+)
19 diff --git a/nss-myhostname.c b/nss-myhostname.c
20 index 293166c..6f287f5 100644
21 --- a/nss-myhostname.c
22 +++ b/nss-myhostname.c
32 + NSS_STATUS_TRYAGAIN = -2,
34 + NSS_STATUS_NOTFOUND,
38 +/* Data structure used for the 'gethostbyname4_r' function. */
39 +struct gaih_addrtuple
41 + struct gaih_addrtuple *next;
48 #include <sys/types.h>