archrelease: copy trunk to extra-x86_64
[arch-packages.git] / sqlite / trunk / sqlite-lemon-system-template.patch
blobd4ed6c0b994b4f681363077d8819e6d0e6408197
1 diff --git a/tool/lemon.c b/tool/lemon.c
2 index 54c8946..ac14a06 100644
3 --- a/tool/lemon.c
4 +++ b/tool/lemon.c
5 @@ -3668,6 +3668,8 @@ PRIVATE FILE *tplt_open(struct lemon *lemp)
6 tpltname = buf;
7 }else if( access(templatename,004)==0 ){
8 tpltname = templatename;
9 + }else if( access("/usr/share/lemon/lempar.c", R_OK)==0){
10 + tpltname = "/usr/share/lemon/lempar.c";
11 }else{
12 toFree = tpltname = pathsearch(lemp->argv0,templatename,0);