openbsd-ports/x11/xview/config/patches/p-libxview-panel-p_txt_c

16 lines
422 B
Plaintext

--- lib/libxview/panel/p_txt.c.orig 1993-06-29 07:16:55.000000000 +0200
+++ lib/libxview/panel/p_txt.c 2003-12-30 01:31:13.000000000 +0100
@@ -10,7 +10,12 @@ static char sccsid[] = "@(#)p_txt.c
* file for terms of the license.
*/
+#include <sys/param.h>
+#if (defined(BSD) && (BSD >= 199103))
+#include <stdlib.h>
+#else
#include <malloc.h>
+#endif
#include <string.h>
#include <ctype.h>
#include <X11/X.h>