From ff6b196d1d1e15ab8cb12c571b09afc8c609aa97 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 8 Feb 2024 13:41:20 +0100 Subject: [PATCH] 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 Part-of: --- hw/xfree86/parser/write.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hw/xfree86/parser/write.c b/hw/xfree86/parser/write.c index f4aa03b3d..1c8e33dd0 100644 --- a/hw/xfree86/parser/write.c +++ b/hw/xfree86/parser/write.c @@ -65,10 +65,6 @@ #include #include -#if defined(WIN32) -#define HAS_NO_UIDS -#endif - static int doWriteConfigFile(const char *filename, XF86ConfigPtr cptr) { @@ -126,7 +122,7 @@ doWriteConfigFile(const char *filename, XF86ConfigPtr cptr) int xf86writeConfigFile(const char *filename, XF86ConfigPtr cptr) { -#ifndef HAS_NO_UIDS +#ifndef WIN32 int ret; if (getuid() != geteuid()) { @@ -149,6 +145,6 @@ xf86writeConfigFile(const char *filename, XF86ConfigPtr cptr) return ret; } else -#endif /* !HAS_NO_UIDS */ +#endif /* WIN32 */ return doWriteConfigFile(filename, cptr); }