summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/libnsl/libnsl2/0001-include-sys-cdefs.h-explicitly.patch
blob: c6c259adb852d08a3e7bd1909620fe2a32a5f0f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
From 508a0ff690dfebc17c4f55a5f81824ed549bed66 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 18 Apr 2017 09:13:33 -0700
Subject: [PATCH 1/2] include sys/cdefs.h explicitly

glibc includes this header indirectly but not musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream_status: Pending

 src/rpcsvc/nis.h    | 1 +
 src/rpcsvc/nislib.h | 1 +
 src/rpcsvc/ypclnt.h | 1 +
 src/rpcsvc/ypupd.h  | 1 +
 4 files changed, 4 insertions(+)

diff --git a/src/rpcsvc/nis.h b/src/rpcsvc/nis.h
index 933c4d9..88cbca0 100644
--- a/src/rpcsvc/nis.h
+++ b/src/rpcsvc/nis.h
@@ -32,6 +32,7 @@
 #ifndef _RPCSVC_NIS_H
 #define _RPCSVC_NIS_H 1
 
+#include <sys/cdefs.h>
 #include <features.h>
 #include <rpc/rpc.h>
 #include <rpcsvc/nis_tags.h>
diff --git a/src/rpcsvc/nislib.h b/src/rpcsvc/nislib.h
index a59c19b..a53fab3 100644
--- a/src/rpcsvc/nislib.h
+++ b/src/rpcsvc/nislib.h
@@ -19,6 +19,7 @@
 #ifndef	__RPCSVC_NISLIB_H__
 #define	__RPCSVC_NISLIB_H__
 
+#include <sys/cdefs.h>
 #include <features.h>
 
 __BEGIN_DECLS
diff --git a/src/rpcsvc/ypclnt.h b/src/rpcsvc/ypclnt.h
index fe43fd4..a686b61 100644
--- a/src/rpcsvc/ypclnt.h
+++ b/src/rpcsvc/ypclnt.h
@@ -20,6 +20,7 @@
 #ifndef	__RPCSVC_YPCLNT_H__
 #define	__RPCSVC_YPCLNT_H__
 
+#include <sys/cdefs.h>
 #include <features.h>
 
 /* Some defines */
diff --git a/src/rpcsvc/ypupd.h b/src/rpcsvc/ypupd.h
index d07fd4d..2c57301 100644
--- a/src/rpcsvc/ypupd.h
+++ b/src/rpcsvc/ypupd.h
@@ -33,6 +33,7 @@
 #ifndef __RPCSVC_YPUPD_H__
 #define __RPCSVC_YPUPD_H__
 
+#include <sys/cdefs.h>
 #include <features.h>
 
 #include <rpc/rpc.h>
-- 
2.12.2