diff options
-rw-r--r-- | sys-apps/tcp-wrappers/files/tcp-wrappers-7.6.28-no-external-malloc.patch | 15 | ||||
-rw-r--r-- | sys-apps/tcp-wrappers/tcp-wrappers-7.6.28.ebuild | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/sys-apps/tcp-wrappers/files/tcp-wrappers-7.6.28-no-external-malloc.patch b/sys-apps/tcp-wrappers/files/tcp-wrappers-7.6.28-no-external-malloc.patch new file mode 100644 index 000000000000..eebd600aab24 --- /dev/null +++ b/sys-apps/tcp-wrappers/files/tcp-wrappers-7.6.28-no-external-malloc.patch @@ -0,0 +1,15 @@ +We use malloc() from stdlib.h. + +--- a/scaffold.c ++++ b/scaffold.c +@@ -26,10 +26,6 @@ static char sccs_id[] = "@(#) scaffold.c 1.6 97/03/21 19:27:24"; + #define INADDR_NONE (-1) /* XXX should be 0xffffffff */ + #endif + +-#ifndef INET6 +-extern char *malloc(); +-#endif +- + /* Application-specific. */ + + #include "tcpd.h" diff --git a/sys-apps/tcp-wrappers/tcp-wrappers-7.6.28.ebuild b/sys-apps/tcp-wrappers/tcp-wrappers-7.6.28.ebuild index 00e58c8c433f..8e96239d9162 100644 --- a/sys-apps/tcp-wrappers/tcp-wrappers-7.6.28.ebuild +++ b/sys-apps/tcp-wrappers/tcp-wrappers-7.6.28.ebuild @@ -25,6 +25,7 @@ S=${WORKDIR}/${MY_P} src_prepare() { eapply $(sed -e 's:^:../debian/patches/:' ../debian/patches/series) eapply "${FILESDIR}"/${PN}-7.6-redhat-bug11881.patch + eapply "${FILESDIR}"/${PN}-7.6.28-no-external-malloc.patch eapply_user |