From 343c23ce9c7aab291721d671fe5504e7bdbfd3c2 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 17 Nov 2022 12:36:20 +0100 Subject: Don't check for O_PATH being defined O_PATH has been in Linux since version 2.6.39, which was a very long time ago. Additionally, this library only works on Linux anyways since the interface to backlight information is Linux-specific. Therefore we have no real reason to bother with handling the case where it's not defined. --- src/lux.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/lux.h') diff --git a/src/lux.h b/src/lux.h index 2e83f5d..eb19d0d 100644 --- a/src/lux.h +++ b/src/lux.h @@ -21,12 +21,6 @@ #include #define LIBLUX_BACKLIGHT_DIR "/sys/class/backlight" -#ifdef O_PATH - #define LUX_GDIR_FLAGS O_PATH -#else - #define LUX_GDIR_FLAGS (O_RDONLY | O_DIRECTORY) -#endif - #ifdef __cplusplus extern "C" { -- cgit v1.2.3