Avoid checking of undefined macros

These feature macros are either define or not defined at all at the
configure step.
This commit is contained in:
Christian Göttsche
2020-09-08 13:59:30 +02:00
committed by cgzones
parent c3952e7c20
commit b85a31415e
6 changed files with 20 additions and 20 deletions

8
CRT.c
View File

@ -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.