[PATCH 3/3] dlls/ntdll: Fix undefined reference to \'major\' and \'minor\'
Seong-ho Cho
darkcircle.0426 at gmail.com
Sun Apr 17 14:25:40 CDT 2016
Fixes https://bugs.winehq.org/show_bug.cgi?id=40473
Signed-off-by: Seong-ho Cho <darkcircle.0426 at gmail.com>
---
dlls/ntdll/cdrom.c | 5 +++++
dlls/ntdll/directory.c | 5 +++++
dlls/ntdll/file.c | 5 +++++
3 files changed, 15 insertions(+)
diff --git a/dlls/ntdll/cdrom.c b/dlls/ntdll/cdrom.c
index ee36045..00e4217 100644
--- a/dlls/ntdll/cdrom.c
+++ b/dlls/ntdll/cdrom.c
@@ -38,6 +38,11 @@
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
+#if defined(MAJOR_IN_MKDEV)
+#include <sys/mkdev.h>
+#elif defined(MAJOR_IN_SYSMACROS)
+#include <sys/sysmacros.h>
+#endif
#include <sys/types.h>
#ifdef HAVE_SYS_IOCTL_H
diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c
index 93fe594..a7d21d0 100644
--- a/dlls/ntdll/directory.c
+++ b/dlls/ntdll/directory.c
@@ -24,6 +24,11 @@
#include "wine/port.h"
#include <assert.h>
+#if defined(MAJOR_IN_MKDEV)
+#include <sys/mkdev.h>
+#elif defined(MAJOR_IN_SYSMACROS)
+#include <sys/sysmacros.h>
+#endif
#include <sys/types.h>
#ifdef HAVE_DIRENT_H
# include <dirent.h>
diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index 7e5da59..86899fb 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -57,6 +57,11 @@
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
+#if defined(MAJOR_IN_MKDEV)
+#include <sys/mkdev.h>
+#elif defined(MAJOR_IN_SYSMACROS)
+#include <sys/sysmacros.h>
+#endif
#ifdef HAVE_UTIME_H
# include <utime.h>
#endif
--
2.8.1
More information about the wine-patches
mailing list