[PATCH] server: ifdefs guards for unistd.h and sys/types.h
Craig Andrews
candrews at integralblue.com
Mon Oct 18 09:19:56 CDT 2021
unistd.h and sys/types.h should have ifdef HAVE_UNISTD_H and ifdef HAVE_SYS_TYPES_H guards, respectively.
These includes were added in commit 8184bcc9
Signed-off-by: Craig Andrews <candrews at integralblue.com>
---
server/token.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/server/token.c b/server/token.c
index 820a7a0e07d..aec5aca12ac 100644
--- a/server/token.c
+++ b/server/token.c
@@ -26,8 +26,15 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
+
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+
#include "ntstatus.h"
#define WIN32_NO_STATUS
--
2.32.0
More information about the wine-devel
mailing list