[PATCH] server: Fix missing include for uid_t

Ismael Luceno ismael at iodev.co.uk
Fri Nov 12 12:39:35 CST 2021


Explicitly include <sys/types.h> to make uid_t available to users of
server/security.h.

This is a problem on musl, and possibly other non-glibc systems.

Fixes: c954e5b9e6a6 ("server: Avoid using wine/port.h.")
Signed-off-by: Ismael Luceno <ismael at iodev.co.uk>
---
 server/security.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/server/security.h b/server/security.h
index 5388bc9c4195..39e7218ec5fa 100644
--- a/server/security.h
+++ b/server/security.h
@@ -21,6 +21,8 @@
 #ifndef __WINE_SERVER_SECURITY_H
 #define __WINE_SERVER_SECURITY_H
 
+#include <sys/types.h> /* for uid_t */
+
 extern const LUID SeIncreaseQuotaPrivilege;
 extern const LUID SeSecurityPrivilege;
 extern const LUID SeTakeOwnershipPrivilege;
-- 
2.33.0




More information about the wine-devel mailing list