diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-09-08 13:59:30 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-09-18 12:28:40 +0200 |
commit | b85a31415e8d68d0d46a105b1033a92669224682 (patch) | |
tree | 61020d61c68f9772967754c2598599e6ad9d84f3 /CRT.c | |
parent | c3952e7c20a3108c2f16aa579f8062dfc2163bd8 (diff) |
Avoid checking of undefined macros
These feature macros are either define or not defined at all at the
configure step.
Diffstat (limited to 'CRT.c')
-rw-r--r-- | CRT.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -18,7 +18,7 @@ in the source distribution for its full text. #include <string.h> #include <locale.h> #include <langinfo.h> -#if HAVE_SETUID_ENABLED +#ifdef HAVE_SETUID_ENABLED #include <unistd.h> #include <sys/types.h> #endif @@ -519,7 +519,7 @@ static void CRT_handleSIGTERM(int sgn) { exit(0); } -#if HAVE_SETUID_ENABLED +#ifdef HAVE_SETUID_ENABLED static int CRT_euid = -1; @@ -550,11 +550,11 @@ void CRT_restorePrivileges() { } } -#else +#else /* HAVE_SETUID_ENABLED */ // In this case, the setuid operations are defined as macros in CRT.h -#endif +#endif /* HAVE_SETUID_ENABLED */ // TODO: pass an instance of Settings instead. |