diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-04-06 22:33:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-04-06 22:33:41 +0100 |
commit | e68d405c5d712af4387159df07e226217bdda049 (patch) | |
tree | 009ab0f3d427f0813e62930d71802cb054c07e30 /net-misc/telnet-bsd/files | |
parent | 401101f9c8077911929d3f2b60a37098460a5d89 (diff) |
gentoo resync : 06.04.2022
Diffstat (limited to 'net-misc/telnet-bsd/files')
-rw-r--r-- | net-misc/telnet-bsd/files/telnet-bsd-1.2-musl.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/net-misc/telnet-bsd/files/telnet-bsd-1.2-musl.patch b/net-misc/telnet-bsd/files/telnet-bsd-1.2-musl.patch new file mode 100644 index 000000000000..0194015968a7 --- /dev/null +++ b/net-misc/telnet-bsd/files/telnet-bsd-1.2-musl.patch @@ -0,0 +1,42 @@ +diff --git a/telnet/misc-proto.h b/telnet/misc-proto.h +index 5845751..777a700 100644 +--- a/telnet/misc-proto.h ++++ b/telnet/misc-proto.h +@@ -63,7 +63,7 @@ + #ifndef __MISC_PROTO__ + #define __MISC_PROTO__ + +-#include <sys/cdefs.h> ++#define __P(protos) protos /* full-blown ANSI C */ + + void auth_encrypt_init __P((char *, char *, char *, int)); + void auth_encrypt_user __P((char *)); +diff --git a/telnet/ring.h b/telnet/ring.h +index 9ef8fb8..65762b2 100644 +--- a/telnet/ring.h ++++ b/telnet/ring.h +@@ -28,8 +28,8 @@ + * + */ + +-#include <sys/cdefs.h> + #include <sys/types.h> ++#define __P(protos) protos /* full-blown ANSI C */ + #define P __P + + /* +diff --git a/telnetd/sys_term.c b/telnetd/sys_term.c +index 31897d8..3c43f8f 100644 +--- a/telnetd/sys_term.c ++++ b/telnetd/sys_term.c +@@ -838,8 +838,10 @@ cleanup (int sig) + * receive another signal while we're in that function. */ + sigfillset(&sigset); + sigprocmask(SIG_SETMASK, &sigset, &sigset); ++#if defined(logwtmp) + if (logout (p)) + logwtmp (p, "", ""); ++#endif + sigprocmask(SIG_SETMASK, &sigset, NULL); + #ifdef PARANOID_TTYS + /* |