[PATCH 2/3] server: Fix undefined reference to \'major\'

Seong-ho Cho darkcircle.0426 at gmail.com
Sun Apr 17 14:25:39 CDT 2016


Fixes https://bugs.winehq.org/show_bug.cgi?id=40473

Signed-off-by: Seong-ho Cho <darkcircle.0426 at gmail.com>
---
 server/fd.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/server/fd.c b/server/fd.c
index 1fd1ce7..5d3288e 100644
--- a/server/fd.c
+++ b/server/fd.c
@@ -83,6 +83,11 @@
 #endif
 #include <sys/stat.h>
 #include <sys/time.h>
+#if defined(MAJOR_IN_MKDEV)
+#include <sys/mkdev.h>
+#elif defined(MAJOR_IN_SYSMACROS)
+#include <sys/sysmacros.h>
+#endif
 #include <sys/types.h>
 #include <unistd.h>
 #ifdef HAVE_SYS_SYSCALL_H
-- 
2.8.1




More information about the wine-patches mailing list