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

missing: re-add drm related entries

This effectively reverts dab28f0905.

Fixes #11075.
This commit is contained in:
Yu Watanabe 2018-12-07 18:11:36 +09:00 committed by Lennart Poettering
parent 83da42c3bf
commit 5b139f86a6
4 changed files with 12 additions and 4 deletions

View File

@ -96,6 +96,7 @@ basic_sources = files('''
missing_btrfs.h
missing_btrfs_tree.h
missing_capability.h
missing_drm.h
missing_ethtool.h
missing_fcntl.h
missing_fib_rules.h

View File

@ -6,6 +6,7 @@
#include "missing_audit.h"
#include "missing_btrfs_tree.h"
#include "missing_capability.h"
#include "missing_drm.h"
#include "missing_fcntl.h"
#include "missing_fs.h"
#include "missing_input.h"

10
src/basic/missing_drm.h Normal file
View File

@ -0,0 +1,10 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#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

View File

@ -3,13 +3,9 @@
#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"