From: Yu Watanabe Date: Thu, 6 Dec 2018 06:12:26 +0000 (+0100) Subject: missing: drop old drm related definitions X-Git-Tag: v240~126^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dab28f09051445fe370466e767e31652e0804a0f;p=thirdparty%2Fsystemd.git missing: drop old drm related definitions These values are exposed earlier than linux-3.11. Let's use drm/drm.h. --- diff --git a/src/basic/missing.h b/src/basic/missing.h index 7653d7d17a8..34afbddd103 100644 --- a/src/basic/missing.h +++ b/src/basic/missing.h @@ -60,14 +60,6 @@ # 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 diff --git a/src/login/logind-session-device.c b/src/login/logind-session-device.c index f358524ebca..0fcbe98c2a3 100644 --- a/src/login/logind-session-device.c +++ b/src/login/logind-session-device.c @@ -3,9 +3,13 @@ #include #include #include +#include #include #include +/* Old drm.h may needs to be included after stdint.h and sys/types.h */ +#include + #include "sd-device.h" #include "alloc-util.h"