pkgsrc/x11/xview-clients/patches/patch-bf
joerg 3d1f9faa27 Use EXTRA_LDOPTIONS to get ${PREFIX}/lib in rpath, didn't work on
DragonFly otherwise. Fix some K&R vs. ISO C prototype issues.
2006-01-05 18:33:49 +00:00

28 lines
639 B
Text

$NetBSD: patch-bf,v 1.2 2006/01/05 18:33:49 joerg Exp $
--- olwm/gettext.c.orig 1993-06-29 05:11:46.000000000 +0000
+++ olwm/gettext.c
@@ -1,4 +1,3 @@
-#ident "@(#)gettext.c 1.10 93/06/28 SMI"
/*
* (c) Copyright 1989 Sun Microsystems, Inc.
@@ -15,12 +14,14 @@
#define bzero(a,b) memset(a,0,b)
#endif
-char *malloc(), *strdup();
-char * dgettext();
+char * dgettext(char *, char *);
char *_gettext();
+#include <stdlib.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/mman.h>
+
char *in_path();
-char *fgets(), *getenv();
-caddr_t mmap(), calloc();
static struct domain_binding *firstbind=0, *lastbind=0;