]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing: drop old drm related definitions
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 6 Dec 2018 06:12:26 +0000 (07:12 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 6 Dec 2018 12:27:47 +0000 (13:27 +0100)
These values are exposed earlier than linux-3.11.
Let's use drm/drm.h.

src/basic/missing.h
src/login/logind-session-device.c

index 7653d7d17a816981b5be9d4117beb0fc85c0e6e5..34afbddd1036d0a54fe68190788032d47f17b626 100644 (file)
 #  define CIFS_MAGIC_NUMBER 0xFF534D42
 #endif
 
-#ifndef DRM_IOCTL_SET_MASTER
-#  define DRM_IOCTL_SET_MASTER _IO('d', 0x1e)
-#endif
-
-#ifndef DRM_IOCTL_DROP_MASTER
-#  define DRM_IOCTL_DROP_MASTER _IO('d', 0x1f)
-#endif
-
 #ifndef RENAME_NOREPLACE
 #define RENAME_NOREPLACE (1 << 0)
 #endif
index f358524ebcaae8484a006bfbbab927c9c8ccf473..0fcbe98c2a3dccdf2f02ef9fd0a0dcc44b9a691e 100644 (file)
@@ -3,9 +3,13 @@
 #include <fcntl.h>
 #include <linux/input.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/ioctl.h>
 #include <sys/types.h>
 
+/* Old drm.h may needs to be included after stdint.h and sys/types.h */
+#include <drm/drm.h>
+
 #include "sd-device.h"
 
 #include "alloc-util.h"