pkgsrc/wm/olvwm/patches/patch-ah
joerg 30bab24da8 Replace local prototypes in gettext.c with correct header files,
at least mmap was conflicting anyway on DragonFly. Use InstallGenMan
for section 5 man page. Explicitly add rpath entry for PREFIX/lib.
2006-01-19 23:15:59 +00:00

46 lines
1 KiB
Text

$NetBSD: patch-ah,v 1.2 2006/01/19 23:15:59 joerg Exp $
--- virtual.c.orig 2000-03-02 21:41:11.000000000 +0000
+++ virtual.c
@@ -4,6 +4,7 @@
*/
#include <sys/types.h>
+#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <dirent.h>
@@ -69,6 +70,9 @@ extern Button *MakeUpLeftButton(),*MakeL
extern char *ExpandPath();
+static int rexMatch();
+static int rexInit();
+
/*
* Semantic action associated with each of the buttons above. These must
* be in the same order as the button array; it would be better if the Button
@@ -1982,8 +1986,13 @@ struct _menu *menu;
DIR *dir;
struct dirent *ent;
Button *b;
+#if defined(NAME_MAX)
+char s[NAME_MAX], dirname[MAXPATHLEN - NAME_MAX], *newname, *ExpandPath();
+char pattern[NAME_MAX];
+#else
char s[MAXNAMLEN], dirname[MAXPATHLEN - MAXNAMLEN], *newname, *ExpandPath();
char pattern[MAXNAMLEN];
+#endif
extern int AppMenuFunc();
MenuCache *menuCache;
int slot;
@@ -2108,7 +2117,9 @@ int val;
}
}
+#ifndef REGEXP
static char expbuf[256];
+#endif
static
rexMatch(string)