xfree86: parser: drop HAS_NO_UIDS
It's only locally defined when WIN32 is defined, so we can use this directly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1278>
This commit is contained in:
parent
e439c9c8d7
commit
ff6b196d1d
|
@ -65,10 +65,6 @@
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#if defined(WIN32)
|
|
||||||
#define HAS_NO_UIDS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
doWriteConfigFile(const char *filename, XF86ConfigPtr cptr)
|
doWriteConfigFile(const char *filename, XF86ConfigPtr cptr)
|
||||||
{
|
{
|
||||||
|
@ -126,7 +122,7 @@ doWriteConfigFile(const char *filename, XF86ConfigPtr cptr)
|
||||||
int
|
int
|
||||||
xf86writeConfigFile(const char *filename, XF86ConfigPtr cptr)
|
xf86writeConfigFile(const char *filename, XF86ConfigPtr cptr)
|
||||||
{
|
{
|
||||||
#ifndef HAS_NO_UIDS
|
#ifndef WIN32
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (getuid() != geteuid()) {
|
if (getuid() != geteuid()) {
|
||||||
|
@ -149,6 +145,6 @@ xf86writeConfigFile(const char *filename, XF86ConfigPtr cptr)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif /* !HAS_NO_UIDS */
|
#endif /* WIN32 */
|
||||||
return doWriteConfigFile(filename, cptr);
|
return doWriteConfigFile(filename, cptr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue