OSDN Git Service

Add the missing include <sys/sysmacros.h> oreo-x86 pie-x86 android-x86-8.1-r1 android-x86-8.1-r2 android-x86-8.1-r3 android-x86-8.1-r4 android-x86-8.1-r5 android-x86-8.1-r6
authorChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 12 Dec 2017 09:21:58 +0000 (17:21 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 12 Dec 2017 09:21:58 +0000 (17:21 +0800)
To provide the prototypes of major and minor.

eject.c

diff --git a/eject.c b/eject.c
index 5a149c6..569d5a4 100644 (file)
--- a/eject.c
+++ b/eject.c
@@ -77,6 +77,7 @@
 #include <scsi/scsi_ioctl.h>
 #endif
 #include <sys/time.h>
+#include <sys/sysmacros.h>
 
 /* Used by the ToggleTray() function. If ejecting the tray takes this
  * time or less, the tray was probably already ejected, so we close it