summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/environ.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-08-25 18:21:07 +0000
committerChristopher Faylor <me@cgf.cx>2003-08-25 18:21:07 +0000
commit4392d36cbb8ba8dae24eca82c445d807497d69ff (patch)
treedd61a5e7d55d5896a48a1ecb7676ec9ac5bf3657 /winsup/cygwin/environ.cc
parente98b6dbb6d8c3f7e3329090a76814fae0ba2ce0b (diff)
downloadcygnal-4392d36cbb8ba8dae24eca82c445d807497d69ff.tar.gz
cygnal-4392d36cbb8ba8dae24eca82c445d807497d69ff.tar.bz2
cygnal-4392d36cbb8ba8dae24eca82c445d807497d69ff.zip
Throughout, change USE_CYGSERVER to USE_SERVER.
* Makefile.in (LIBSERVER): Define and use. * configure.in: Set LIBSERVER as appropriate. * environ.cc: Rename allow_daemon to allow_server. Only recognize when USE_SERVER is defined.
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r--winsup/cygwin/environ.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc
index 58d880013..fba44ac6d 100644
--- a/winsup/cygwin/environ.cc
+++ b/winsup/cygwin/environ.cc
@@ -35,8 +35,10 @@ extern bool strip_title_path;
extern int pcheck_case;
extern int subauth_id;
bool reset_com = false;
-bool allow_daemon = false;
static bool envcache = true;
+#ifdef USE_SERVER
+extern bool allow_server;
+#endif
static char **lastenviron;
@@ -506,7 +508,9 @@ static struct parse_thing
{"binmode", {x: &binmode}, justset, NULL, {{O_TEXT}, {O_BINARY}}},
{"check_case", {func: &check_case_init}, isfunc, NULL, {{0}, {0}}},
{"codepage", {func: &codepage_init}, isfunc, NULL, {{0}, {0}}},
- {"daemon", {&allow_daemon}, justset, NULL, {{false}, {true}}},
+#ifdef USE_SERVER
+ {"server", {&allow_server}, justset, NULL, {{false}, {true}}},
+#endif
{"envcache", {&envcache}, justset, NULL, {{true}, {false}}},
{"error_start", {func: &error_start_init}, isfunc, NULL, {{0}, {0}}},
{"export", {&export_settings}, justset, NULL, {{false}, {true}}},