From e22b771ff841f7afa91128ed0a1d79aa3e2bc429 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 19 Feb 2020 20:38:12 +0100 Subject: [PATCH] build: remove fchmod() check This is UNIX-only code, and this function has been in POSIX since forever. Even Android has it. The test should be unnecessary, so remove it. --- input/ipc-unix.c | 2 -- wscript | 4 ---- 2 files changed, 6 deletions(-) diff --git a/input/ipc-unix.c b/input/ipc-unix.c index bfd035298c..ef478ba35e 100644 --- a/input/ipc-unix.c +++ b/input/ipc-unix.c @@ -314,9 +314,7 @@ static void *ipc_thread(void *p) goto done; } -#if HAVE_FCHMOD fchmod(ipc_fd, 0600); -#endif size_t path_len = strlen(arg->path); if (path_len >= sizeof(ipc_un.sun_path) - 1) { diff --git a/wscript b/wscript index b918d7cfc0..7506b1bceb 100644 --- a/wscript +++ b/wscript @@ -281,10 +281,6 @@ iconv support use --disable-iconv.", 'desc': 'any glob() support', 'deps': 'glob-posix || glob-win32', 'func': check_true, - }, { - 'name': 'fchmod', - 'desc': 'fchmod()', - 'func': check_statement('sys/stat.h', 'fchmod(0, 0)'), }, { 'name': 'vt.h', 'desc': 'vt.h',