mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
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:

committed by
cgzones

parent
c3952e7c20
commit
b85a31415e
8
CRT.c
8
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.
|
||||
|
||||
|
Reference in New Issue
Block a user