1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 17:51:22 +03:00

missing: drop old drm related definitions

These values are exposed earlier than linux-3.11.
Let's use drm/drm.h.
This commit is contained in:
Yu Watanabe 2018-12-06 07:12:26 +01:00
parent 957c622b86
commit dab28f0905
2 changed files with 4 additions and 8 deletions

View File

@ -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

View 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"