diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-05 23:20:50 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-05 23:20:50 +0200 |
commit | 563a9326598886e03cde94d92f979e68bdad9760 (patch) | |
tree | d378e53fc76d8a00dad20117dba1dc59ad104d09 /common/drm.c | |
parent | 86efc98a5eab40631f6f02e6cdcfdd871ec08e9a (diff) |
Remove pointless compiler.h
Diffstat (limited to 'common/drm.c')
-rw-r--r-- | common/drm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/drm.c b/common/drm.c index 684a925..8be2c62 100644 --- a/common/drm.c +++ b/common/drm.c @@ -6,7 +6,6 @@ #include <sys/sysmacros.h> #endif -#include "compiler.h" #include "drm.h" // From libdrm @@ -15,6 +14,8 @@ #define DRM_IOCTL_SET_MASTER DRM_IO(0x1e) #define DRM_IOCTL_DROP_MASTER DRM_IO(0x1f) +#define STRLEN(s) ((sizeof(s) / sizeof(s[0])) - 1) + int drm_set_master(int fd) { return ioctl(fd, DRM_IOCTL_SET_MASTER, 0); } |