diff options
author | Will Dietz <w@wdtz.org> | 2018-04-23 13:47:32 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-04-24 17:24:39 -0500 |
commit | 40be5dd2df4e57237a44fee596e8c2df232686d2 (patch) | |
tree | 66e8f5d6edd4dcee83c2d0f91a4ef9def504989e /pkgs/os-specific/linux/tcp-wrappers/cdecls.patch | |
parent | 092a4fff400a06d2b82b8fb9722bcc05c9e89566 (diff) | |
download | nixpkgs-40be5dd2df4e57237a44fee596e8c2df232686d2.tar nixpkgs-40be5dd2df4e57237a44fee596e8c2df232686d2.tar.gz nixpkgs-40be5dd2df4e57237a44fee596e8c2df232686d2.tar.bz2 nixpkgs-40be5dd2df4e57237a44fee596e8c2df232686d2.tar.lz nixpkgs-40be5dd2df4e57237a44fee596e8c2df232686d2.tar.xz nixpkgs-40be5dd2df4e57237a44fee596e8c2df232686d2.tar.zst nixpkgs-40be5dd2df4e57237a44fee596e8c2df232686d2.zip |
tcp-wrappers: patch up crufty code, fix w/musl
Diffstat (limited to 'pkgs/os-specific/linux/tcp-wrappers/cdecls.patch')
-rw-r--r-- | pkgs/os-specific/linux/tcp-wrappers/cdecls.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/tcp-wrappers/cdecls.patch b/pkgs/os-specific/linux/tcp-wrappers/cdecls.patch new file mode 100644 index 00000000000..eee640e8a82 --- /dev/null +++ b/pkgs/os-specific/linux/tcp-wrappers/cdecls.patch @@ -0,0 +1,31 @@ +__BEGIN_DECLS/__END_DECLS are BSD specific and not defined in musl +glibc and uclibc had sys/cdefs.h doing it. + +Upstream-Status: Pending +Signed-off-by: Khem Raj <raj.khem@gmail.com> + +Index: tcp_wrappers_7.6/tcpd.h +=================================================================== +--- tcp_wrappers_7.6.orig/tcpd.h ++++ tcp_wrappers_7.6/tcpd.h +@@ -11,7 +11,9 @@ + #include <netinet/in.h> + #include <stdio.h> + +-__BEGIN_DECLS ++#ifdef __cplusplus ++extern "C" { ++#endif + + /* Structure to describe one communications endpoint. */ + +@@ -252,6 +254,8 @@ extern char *fix_strtok(); + extern char *my_strtok(); + #endif + +-__END_DECLS ++#ifdef __cplusplus ++} ++#endif + + #endif |