diff options
author | Attila Molnar <attilamolnar@hush.com> | 2012-10-05 05:39:36 -0700 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2012-10-05 05:39:36 -0700 |
commit | 048ebe3ed7bafd63672f2869692af9497f4e602a (patch) | |
tree | c97a51f1f56a241b3a05254c3d0bf71932404ced | |
parent | dbab6211293d537a45384a9980beec3873956cc7 (diff) | |
parent | 9b4a2a939b306ec03f6b99cbd9c8a6defe761b4a (diff) |
Merge pull request #317 from ChrisTX/insp20+fixwinbuild
Windows: Fix broken build
-rw-r--r-- | win/configure.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/win/configure.cpp b/win/configure.cpp index 3a2e684ef..f2917d1af 100644 --- a/win/configure.cpp +++ b/win/configure.cpp @@ -302,6 +302,7 @@ void Run() string config_path = get_string_option("In what directory are the configuration files?", "conf"); string mod_path = get_string_option("In what directory are the modules to be compiled to?", "modules"); string data_path = get_string_option("In what directory is the variable data to be placed in?", "data"); + string log_path = get_string_option("In what directory is the logs to be placed in?", "logs"); string bin_dir = get_string_option("In what directory is the IRCd binary to be placed?", "."); printf_c("\n\033[1;32mPre-build configuration is complete!\n\n"); sc(TNORMAL); @@ -313,6 +314,7 @@ void Run() printf_c("\033[0mConfig path:\033[1;32m %s\n", config_path.c_str()); printf_c("\033[0mModule path:\033[1;32m %s\n", mod_path.c_str()); printf_c("\033[0mData path:\033[1;32m %s\n", data_path.c_str()); + printf_c("\033[0mLog path:\033[1;32m %s\n", log_path.c_str()); printf_c("\033[0mSocket Engine:\033[1;32m %s\n", "select"); printf("\n"); sc(TNORMAL); @@ -325,6 +327,7 @@ void Run() // escape the pathes escape_string(data_path); + escape_string(log_path); escape_string(config_path); escape_string(mod_path); @@ -337,6 +340,7 @@ void Run() fprintf(f, "#define CONFIG_PATH \"%s\"\n", config_path.c_str()); fprintf(f, "#define MOD_PATH \"%s\"\n", mod_path.c_str()); fprintf(f, "#define DATA_PATH \"%s\"\n", data_path.c_str()); + fprintf(f, "#define LOG_PATH \"%s\"\n", log_path.c_str()); fprintf(f, "#define SOMAXCONN_S \"128\"\n"); fprintf(f, "#define MAXBUF 514\n"); |