summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-09-08 13:59:30 +0200
committercgzones <cgzones@googlemail.com>2020-09-18 12:28:40 +0200
commitb85a31415e8d68d0d46a105b1033a92669224682 (patch)
tree61020d61c68f9772967754c2598599e6ad9d84f3 /CRT.c
parentc3952e7c20a3108c2f16aa579f8062dfc2163bd8 (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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/CRT.c b/CRT.c
index 16f0e957..d6390ab6 100644
--- a/CRT.c
+++ b/CRT.c
@@ -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.

© 2014-2024 Faster IT GmbH | imprint | privacy policy