summaryrefslogtreecommitdiff
path: root/comms/mgetty+sendfax/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-08-08 20:00:12 +0000
committerjoerg <joerg@pkgsrc.org>2007-08-08 20:00:12 +0000
commit5ed1bde1358a06c284870b2b5b8b316beef030a6 (patch)
treee70b30cd5c133ed98961626428a4631337c284f2 /comms/mgetty+sendfax/patches
parent05afd457bf7a85f0a0a27c8c53afdb6b7ebc2b95 (diff)
downloadpkgsrc-5ed1bde1358a06c284870b2b5b8b316beef030a6.tar.gz
Don't use malloc.h.
Diffstat (limited to 'comms/mgetty+sendfax/patches')
-rw-r--r--comms/mgetty+sendfax/patches/patch-ar18
-rw-r--r--comms/mgetty+sendfax/patches/patch-as27
2 files changed, 45 insertions, 0 deletions
diff --git a/comms/mgetty+sendfax/patches/patch-ar b/comms/mgetty+sendfax/patches/patch-ar
new file mode 100644
index 00000000000..3756c50b4c3
--- /dev/null
+++ b/comms/mgetty+sendfax/patches/patch-ar
@@ -0,0 +1,18 @@
+$NetBSD: patch-ar,v 1.1 2007/08/08 20:00:12 joerg Exp $
+
+--- syslibs.h.orig 2007-08-08 19:35:23.000000000 +0000
++++ syslibs.h
+@@ -3,13 +3,7 @@
+ /* Include stdlib.h / malloc.h, depending on the O/S
+ */
+
+-#ifndef _NOSTDLIB_H
+ #include <stdlib.h>
+-#endif
+-
+-#if !defined( __bsdi__ ) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(NeXT) && !defined(__MACH__)
+-#include <malloc.h>
+-#endif
+
+ #ifdef NEXTSGTTY /* NeXT, not POSIX subsystem */
+ # include <libc.h>
diff --git a/comms/mgetty+sendfax/patches/patch-as b/comms/mgetty+sendfax/patches/patch-as
new file mode 100644
index 00000000000..73c011a653b
--- /dev/null
+++ b/comms/mgetty+sendfax/patches/patch-as
@@ -0,0 +1,27 @@
+$NetBSD: patch-as,v 1.1 2007/08/08 20:00:12 joerg Exp $
+
+--- voice/include/voice.h.orig 2007-08-08 19:38:21.000000000 +0000
++++ voice/include/voice.h
+@@ -11,10 +11,7 @@
+ #ifndef VOICE_INCLUDE_VOICE_H
+ #define VOICE_INCLUDE_VOICE_H
+
+-#ifndef _NOSTDLIB_H
+-# include <stdlib.h>
+-#endif
+-
++#include <stdlib.h>
+ #include <stdio.h>
+ #include <unistd.h>
+
+@@ -22,10 +19,6 @@
+ #include <errno.h>
+ #include <fcntl.h>
+
+-#if !defined( __bsdi__ ) && !defined(__FreeBSD__) && !defined(NeXT) && !defined(__OpenBSD__)
+-# include <malloc.h>
+-#endif
+-
+ #include <math.h>
+ #include <signal.h>
+ #include <string.h>