From e5b112f993d8d922ba372c003cd48c32b5699154 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 5 Dec 2015 10:10:49 +0200 Subject: [PATCH] Fix SYSCF complaints when compiling without BETA --- src/files.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/files.c b/src/files.c index 1ce0c872e..0ff97c768 100644 --- a/src/files.c +++ b/src/files.c @@ -2320,27 +2320,28 @@ int src; return 0; } sysopt.tt_oname_maxrank = n; -#ifdef PANICTRACE } else if (src == SET_IN_SYS && match_varname(buf, "PANICTRACE_LIBC", 15)) { -#ifdef PANICTRACE_LIBC +#if defined(PANICTRACE) && defined(PANICTRACE_LIBC) n = atoi(bufp); if (n < 0 || n > 2) { raw_printf("Illegal value in PANICTRACE_LIBC (not 0,1,2)."); return 0; } sysopt.panictrace_libc = n; -#endif /* PANICTRACE_LIBC */ +#endif } else if (src == SET_IN_SYS && match_varname(buf, "PANICTRACE_GDB", 14)) { +#ifdef PANICTRACE n = atoi(bufp); if (n < 0 || n > 2) { raw_printf("Illegal value in PANICTRACE_GDB (not 0,1,2)."); return 0; } sysopt.panictrace_gdb = n; +#endif } else if (src == SET_IN_SYS && match_varname(buf, "GDBPATH", 7)) { -#ifndef VMS /* VMS panictrace support doesn't use gdb or grep */ +#if defined(PANICTRACE) && !defined(VMS) /* VMS panictrace support doesn't use gdb or grep */ if (!file_exists(bufp)) { raw_printf("File specified in GDBPATH does not exist."); return 0; @@ -2350,7 +2351,7 @@ int src; sysopt.gdbpath = dupstr(bufp); #endif } else if (src == SET_IN_SYS && match_varname(buf, "GREPPATH", 7)) { -#ifndef VMS /* VMS panictrace support doesn't use gdb or grep */ +#if defined(PANICTRACE) && !defined(VMS) /* VMS panictrace support doesn't use gdb or grep */ if (!file_exists(bufp)) { raw_printf("File specified in GREPPATH does not exist."); return 0; @@ -2358,8 +2359,7 @@ int src; if (sysopt.greppath) free((genericptr_t) sysopt.greppath); sysopt.greppath = dupstr(bufp); -#endif /* !VMS */ -#endif /* PANICTRACE */ +#endif #endif /* SYSCF */ } else if (match_varname(buf, "BOULDER", 3)) { (void) get_uchars(fp, buf, bufp, &iflags.bouldersym, TRUE, 1,