Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | musl does not provide this header and here is reasoning |
| 2 | http://wiki.musl-libc.org/wiki/FAQ#Q:_why_is_sys.2Fqueue.h_not_included_.3F |
| 3 | |
| 4 | So include it only when __GLIBC__ is defined which is true for uclibc and glibc |
| 5 | |
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 7 | Upstream-Status: Pending |
| 8 | |
| 9 | Index: rpcbind-0.2.2/src/util.c |
| 10 | =================================================================== |
| 11 | --- rpcbind-0.2.2.orig/src/util.c |
| 12 | +++ rpcbind-0.2.2/src/util.c |
| 13 | @@ -41,7 +41,9 @@ |
| 14 | |
| 15 | #include <sys/types.h> |
| 16 | #include <sys/socket.h> |
| 17 | +#ifdef __GLIBC__ |
| 18 | #include <sys/queue.h> |
| 19 | +#endif |
| 20 | #include <net/if.h> |
| 21 | #include <netinet/in.h> |
| 22 | #include <ifaddrs.h> |