aboutsummaryrefslogtreecommitdiffstats
path: root/local.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-21 18:51:48 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-21 18:51:48 +0000
commitcba7edc34ec9f4a2faca36736ce3157c44ebc3b3 (patch)
treede7f3442ac3a93b77511389ef341420bcce43962 /local.c
parent[w3m-dev 02479] #ifdef cleanups (diff)
downloadw3m-cba7edc34ec9f4a2faca36736ce3157c44ebc3b3.tar.gz
w3m-cba7edc34ec9f4a2faca36736ce3157c44ebc3b3.zip
[w3m-dev 02480] new configure
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--local.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/local.c b/local.c
index 1777d5d..0c2fbf5 100644
--- a/local.c
+++ b/local.c
@@ -1,4 +1,4 @@
-/* $Id: local.c,v 1.7 2001/11/21 16:29:46 ukai Exp $ */
+/* $Id: local.c,v 1.8 2001/11/21 18:51:48 ukai Exp $ */
#include "fm.h"
#include <string.h>
#include <stdio.h>
@@ -431,7 +431,7 @@ localcgi_post(char *uri, char *qstr, FormList * request, char *referer)
}
fclose(f1);
freopen( tmp1->ptr, "r", stdin);
-#ifndef __EMX__ /* ifndef HAVE_CHDIR? */
+#ifdef HAVE_CHDIR /* ifndef __EMX__ ? */
chdir(mydirname(file));
#endif
execl(file, mybasename(file), NULL);
@@ -467,7 +467,7 @@ localcgi_get(char *uri, char *request, char *referer)
set_environ("REQUEST_METHOD", "GET");
set_environ("QUERY_STRING", request);
freopen(DEV_NULL_PATH, "r", stdin);
-#ifndef __EMX__ /* #ifdef HAVE_CHDIR? */
+#ifdef HAVE_CHDIR /* ifndef __EMX__? */
chdir(mydirname(file));
#endif
execl(file, mybasename(file), NULL);