aboutsummaryrefslogtreecommitdiffstats
path: root/src/drmgamma.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/drmgamma.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/drmgamma.c b/src/drmgamma.c
index d7e04dc..d738dd4 100644
--- a/src/drmgamma.c
+++ b/src/drmgamma.c
@@ -27,14 +27,6 @@
/**
- * Close on exec flag for `open`
- */
-#ifndef O_CLOEXEC
-# define O_CLOEXEC 02000000
-#endif
-
-
-/**
* The number of elements to allocates to a buffer for a DRM device pathname
*/
#define DRM_DEV_NAME_MAX_LEN \
@@ -80,7 +72,7 @@ int drm_card_open(size_t index, drm_card_t* restrict card)
card->connector_count = 0;
sprintf(buf, DRM_DEV_NAME, DRM_DIR_NAME, (int)index);
- card->fd = open(buf, O_RDWR | O_CLOEXEC);
+ card->fd = open(buf, O_RDWR);
if (card->fd == -1)
goto fail;