17 lines
543 B
Plaintext
17 lines
543 B
Plaintext
$OpenBSD: patch-headers_libpnmrw_h,v 1.1.1.1 2001/06/19 03:22:33 angelos Exp $
|
|
--- headers/libpnmrw.h.orig Wed Aug 9 11:17:41 1995
|
|
+++ headers/libpnmrw.h Sun Jun 10 01:24:11 2001
|
|
@@ -19,7 +19,12 @@
|
|
** malloc.h at all. A sad situation. If you have compilation problems
|
|
** that point here, feel free to tweak or remove these declarations.
|
|
*/
|
|
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
|
+#include <stdlib.h>
|
|
+#else
|
|
#include <malloc.h>
|
|
+#endif
|
|
+
|
|
#if !defined(sco) && !defined(sgi) && !defined(IRIX)
|
|
extern char* malloc();
|
|
#endif
|