Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 510838b2c96a9b097b3ee2694cba1c3623b0bac7 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 21 Sep 2017 22:38:05 -0700 |
| 4 | Subject: [PATCH 2/2] Do not use rcmd on build with musl |
| 5 | |
| 6 | cdrkit unconditionally enables code using rcmd(3), which isn't available |
| 7 | on musl. |
| 8 | |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
Patrick Williams | 520786c | 2023-06-25 16:20:36 -0500 | [diff] [blame] | 11 | Upstream-Status: Pending |
| 12 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 13 | include/xconfig.h.in | 3 ++- |
| 14 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/include/xconfig.h.in b/include/xconfig.h.in |
| 17 | index 476c00b..6b4b298 100644 |
| 18 | --- a/include/xconfig.h.in |
| 19 | +++ b/include/xconfig.h.in |
| 20 | @@ -186,8 +186,9 @@ |
| 21 | * Instead use the tests AC_SMALL_FSEEKO/AC_SMALL/STELLO and make sure |
| 22 | * they are placed before the large file tests. |
| 23 | */ |
| 24 | - |
| 25 | +#ifdef __GLIBC__ |
| 26 | #define HAVE_RCMD 1 /* rcmd() is present in libc/libsocket */ |
| 27 | +#endif |
| 28 | #define HAVE_SOCKET 1 /* socket() is present in libc/libsocket */ |
| 29 | #define HAVE_SOCKETPAIR 1 /* socketpair() is present in libc/libsocket */ |
| 30 | #define HAVE_GETSERVBYNAME 1 /* getservbyname() is present in libc/libsocket */ |
| 31 | -- |
| 32 | 2.14.1 |
| 33 | |