drm: Make dev_is_drm local to logind backend

This function is only used for logind, which is Linux-specific, but the
presence in common/drm.c suggested that it had to be portable.

Move it to the logind backend for now.
This commit is contained in:
Kenny Levinsen 2022-03-29 10:46:09 +02:00
parent 0462e9331d
commit 8f8c9558e6
3 changed files with 11 additions and 31 deletions

View file

@ -5,9 +5,4 @@ int drm_set_master(int fd);
int drm_drop_master(int fd);
int path_is_drm(const char *path);
#if defined(__linux__) || defined(__NetBSD__)
#include <sys/types.h>
int dev_is_drm(dev_t device);
#endif
#endif