From 6f00f97b66c65110ff20edb28a7ee8fa6074a2c6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 9 Feb 2018 18:27:01 +0100 Subject: [PATCH] thread/Util: rename ioprio_set() to linux_ioprio_set() Juse in cas glibc gets a wrapper for the system call which would then conflict with ours. --- src/thread/Util.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/thread/Util.cxx b/src/thread/Util.cxx index c4c93f82e..f30d57368 100644 --- a/src/thread/Util.cxx +++ b/src/thread/Util.cxx @@ -41,7 +41,7 @@ #if defined(__linux__) && !defined(ANDROID) static int -ioprio_set(int which, int who, int ioprio) +linux_ioprio_set(int which, int who, int ioprio) { return syscall(__NR_ioprio_set, which, who, ioprio); } @@ -55,7 +55,7 @@ ioprio_set_idle() static constexpr int _IOPRIO_IDLE = (_IOPRIO_CLASS_IDLE << _IOPRIO_CLASS_SHIFT) | 7; - ioprio_set(_IOPRIO_WHO_PROCESS, 0, _IOPRIO_IDLE); + linux_ioprio_set(_IOPRIO_WHO_PROCESS, 0, _IOPRIO_IDLE); } #endif