diff --git a/amxmodx/Makefile b/amxmodx/Makefile index e9f4561a..5ca48128 100755 --- a/amxmodx/Makefile +++ b/amxmodx/Makefile @@ -15,7 +15,7 @@ EXTRA_INCLUDEDIRS = -Iextra/include EXTRA_FLAGS = -Dstrcmpi=strcasecmp SDKTOP=../hlsdk -METADIR=../metamod/metamod +METADIR=../metamod SDKSRC=$(SDKTOP)/SourceCode @@ -29,7 +29,7 @@ else OS=LINUX endif -CC_LINUX=gcc +CC_LINUX=gcc-2.95 ifeq "$(OS)" "WIN32" CC_WIN32=gcc LD_WINDLL=dllwrap diff --git a/amxmodx/amx.h b/amxmodx/amx.h index d9671d44..ae85130f 100755 --- a/amxmodx/amx.h +++ b/amxmodx/amx.h @@ -12,6 +12,7 @@ * * PM: Whole file changed */ +#define LINUX #if defined LINUX #include #endif diff --git a/amxmodx/util.cpp b/amxmodx/util.cpp index 4e6e15f4..3653ec7b 100755 --- a/amxmodx/util.cpp +++ b/amxmodx/util.cpp @@ -283,7 +283,11 @@ void UTIL_MakeNewLogFile() tm *curTime = localtime(&td); // create dir if not existing +#ifdef __linux + mkdir(build_pathname("%s", g_log_dir.str()), 0700); +#else mkdir(build_pathname("%s", g_log_dir.str())); +#endif int i = 0; while (true) @@ -325,4 +329,4 @@ void UTIL_Log(const char *fmt, ...) fprintf(pF, "L %s: %s\n", date, msg); fclose(pF); print_srvconsole("L %s: %s\n", date, msg); -} \ No newline at end of file +}