These values are exposed earlier than linux-3.11.
Let's use drm/drm.h.
# 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
#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"