Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 508a0ff690dfebc17c4f55a5f81824ed549bed66 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 18 Apr 2017 09:13:33 -0700 |
| 4 | Subject: [PATCH 1/2] include sys/cdefs.h explicitly |
| 5 | |
| 6 | glibc includes this header indirectly but not musl |
| 7 | |
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 9 | --- |
| 10 | Upstream-Status: Pending |
| 11 | |
| 12 | src/rpcsvc/nis.h | 1 + |
| 13 | src/rpcsvc/nislib.h | 1 + |
| 14 | src/rpcsvc/ypclnt.h | 1 + |
| 15 | src/rpcsvc/ypupd.h | 1 + |
| 16 | 4 files changed, 4 insertions(+) |
| 17 | |
| 18 | diff --git a/src/rpcsvc/nis.h b/src/rpcsvc/nis.h |
| 19 | index 933c4d9..88cbca0 100644 |
| 20 | --- a/src/rpcsvc/nis.h |
| 21 | +++ b/src/rpcsvc/nis.h |
| 22 | @@ -32,6 +32,7 @@ |
| 23 | #ifndef _RPCSVC_NIS_H |
| 24 | #define _RPCSVC_NIS_H 1 |
| 25 | |
| 26 | +#include <sys/cdefs.h> |
| 27 | #include <features.h> |
| 28 | #include <rpc/rpc.h> |
| 29 | #include <rpcsvc/nis_tags.h> |
| 30 | diff --git a/src/rpcsvc/nislib.h b/src/rpcsvc/nislib.h |
| 31 | index a59c19b..a53fab3 100644 |
| 32 | --- a/src/rpcsvc/nislib.h |
| 33 | +++ b/src/rpcsvc/nislib.h |
| 34 | @@ -19,6 +19,7 @@ |
| 35 | #ifndef __RPCSVC_NISLIB_H__ |
| 36 | #define __RPCSVC_NISLIB_H__ |
| 37 | |
| 38 | +#include <sys/cdefs.h> |
| 39 | #include <features.h> |
| 40 | |
| 41 | __BEGIN_DECLS |
| 42 | diff --git a/src/rpcsvc/ypclnt.h b/src/rpcsvc/ypclnt.h |
| 43 | index fe43fd4..a686b61 100644 |
| 44 | --- a/src/rpcsvc/ypclnt.h |
| 45 | +++ b/src/rpcsvc/ypclnt.h |
| 46 | @@ -20,6 +20,7 @@ |
| 47 | #ifndef __RPCSVC_YPCLNT_H__ |
| 48 | #define __RPCSVC_YPCLNT_H__ |
| 49 | |
| 50 | +#include <sys/cdefs.h> |
| 51 | #include <features.h> |
| 52 | |
| 53 | /* Some defines */ |
| 54 | diff --git a/src/rpcsvc/ypupd.h b/src/rpcsvc/ypupd.h |
| 55 | index d07fd4d..2c57301 100644 |
| 56 | --- a/src/rpcsvc/ypupd.h |
| 57 | +++ b/src/rpcsvc/ypupd.h |
| 58 | @@ -33,6 +33,7 @@ |
| 59 | #ifndef __RPCSVC_YPUPD_H__ |
| 60 | #define __RPCSVC_YPUPD_H__ |
| 61 | |
| 62 | +#include <sys/cdefs.h> |
| 63 | #include <features.h> |
| 64 | |
| 65 | #include <rpc/rpc.h> |
| 66 | -- |
| 67 | 2.12.2 |
| 68 | |