diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2020-09-07 19:49:36 +1000 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-09-07 22:01:57 +0300 |
commit | d327475282d03516c364442f3e6f0307d6fed0a5 (patch) | |
tree | 527c92e4656451b4aa14a929a723e6e5e9337bc3 | |
parent | a350222cc9373cb39f6321aa626ecd7d5066a4fa (diff) | |
download | xorg-lib-libxkbcommon-d327475282d03516c364442f3e6f0307d6fed0a5.tar.gz |
utils: include unistd.h where we have it
MacOS doesn't have eaccess/euidaccess but it does have unistd.h, so let's
include it to silence the R_OK redefinition compiler warnings.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.h b/src/utils.h index d9827c0..cd3e9b1 100644 --- a/src/utils.h +++ b/src/utils.h @@ -30,7 +30,7 @@ #include <stdbool.h> #include <stdio.h> #include <string.h> -#if defined(HAVE_EACCESS) || defined(HAVE_EUIDACCESS) +#if HAVE_UNISTD_H #include <unistd.h> #else /* Required on Windows where unistd.h doesn't exist */ |