diff options
author | wm4 <wm4@nowhere> | 2020-02-19 20:38:12 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-02-19 20:38:12 +0100 |
commit | e22b771ff841f7afa91128ed0a1d79aa3e2bc429 (patch) | |
tree | 51d0be8d4ef1ff5a891cee8d47061696730c9cab | |
parent | 6d8b4ca742d931634be19fb01d4310d7b7fb8de0 (diff) | |
download | mpv-e22b771ff841f7afa91128ed0a1d79aa3e2bc429.tar.bz2 mpv-e22b771ff841f7afa91128ed0a1d79aa3e2bc429.tar.xz |
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.
-rw-r--r-- | input/ipc-unix.c | 2 | ||||
-rw-r--r-- | wscript | 4 |
2 files changed, 0 insertions, 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) { @@ -282,10 +282,6 @@ iconv support use --disable-iconv.", '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', 'func': check_statement(['sys/vt.h', 'sys/ioctl.h'], |