diff options
author | Lars Koeller <lkoeller@FreeBSD.org> | 2001-01-21 19:05:07 +0000 |
---|---|---|
committer | Lars Koeller <lkoeller@FreeBSD.org> | 2001-01-21 19:05:07 +0000 |
commit | c614263584843f23bcd1e4e25fb44431f0337249 (patch) | |
tree | 51deb9a44f58d5f724a81db001c10d3d44254e6c /x11-toolkits/xview | |
parent | o NOPORTDOCS. (diff) |
During compile of xview on my 4.2-Release System with XFree-3.3.6 the
location of .text_extras_menu is set via imake to
-DEXTRASMENU="\"/usr/X11R6/lib/.text_extras_menu\""
This absolute path is not handeld by the code in
.../lib/libxview/textsw/txt_e_menu.c
This patch fixes this case. The warning message when starting xview
progams it's unable to find
/usr/lib/./usr/X11R6/lib/.text_extras_menu
didn't appear anymore.
Diffstat (limited to 'x11-toolkits/xview')
-rw-r--r-- | x11-toolkits/xview/files/patch-lp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/x11-toolkits/xview/files/patch-lp b/x11-toolkits/xview/files/patch-lp new file mode 100644 index 000000000000..d94992827f0b --- /dev/null +++ b/x11-toolkits/xview/files/patch-lp @@ -0,0 +1,22 @@ +*** lib/libxview/textsw/txt_e_menu.c.org Sun Jan 21 16:01:52 2001 +--- lib/libxview/textsw/txt_e_menu.c Sun Jan 21 16:03:27 2001 +*************** +*** 144,153 **** +--- 144,160 ---- + + #ifdef __FreeBSD__ + /* Gee, still?... We will try the old fashioned way */ ++ /* If it is never defined, EXTRASMENU is set to text_extras_menu ++ see top of this file ... */ + (void) sprintf(tmp, "%s/lib/.%s", + filename, EXTRASMENU); + if ((result = check_filename_locale(NULL, tmp, 1)) != NULL) + goto found; ++ /* EXTRASMENU is absolute specified as normally done ++ during compile time option -DEXTRASMENU="\"$(TEXT_EXTRAS_MENU)\" */ ++ (void) sprintf(tmp, "%s", EXTRASMENU); ++ if ((result = check_filename_locale(NULL, tmp, 1)) != NULL) ++ goto found; + #endif + } + |