2bbbd70847
Use NAME_MAX when available. Don't try to fake a FILE on DragonFly. The implementation of textsw_scanf can be improved, it is very defensively and slow ATM, the snprintf usage should be portable. Fix a number of prototype mismatches, e.g. variable argument functions can conflict with K&R prototypes. Bump revision since the package "compiled" before, e.g. build errors where ignored.
25 lines
646 B
Text
25 lines
646 B
Text
$NetBSD: patch-ec,v 1.1 2006/01/05 18:25:57 joerg Exp $
|
|
|
|
--- lib/libxview/misc/gettext.c.orig 1993-06-29 05:16:30.000000000 +0000
|
|
+++ lib/libxview/misc/gettext.c
|
|
@@ -8,12 +8,14 @@ static char sccsid[] = "@(#)gettext.
|
|
#endif
|
|
|
|
#include <xview_private/gettext.h>
|
|
-
|
|
-char *strdup();
|
|
-char * dgettext(), *bindtextdomain();
|
|
-char *_gettext();
|
|
-char *fgets(), *getenv();
|
|
-caddr_t mmap();
|
|
+#include <string.h>
|
|
+#include <stdlib.h>
|
|
+#include <sys/types.h>
|
|
+#include <sys/mman.h>
|
|
+
|
|
+char *bindtextdomain(char *, unsigned char *);
|
|
+char *dgettext(char *, char*);
|
|
+static char *_gettext();
|
|
|
|
static struct domain_binding *firstbind=0, *lastbind=0;
|
|
|