mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
1a0b5f33b3
cmake/target.cmake defines macros for the supported platforms, this commit changes predefined system macros to our own macros. __linux__ --> OS_LINUX __APPLE__ --> OS_DARWIN __FreeBSD__ --> OS_FREEBSD
15 lines
224 B
C++
15 lines
224 B
C++
#pragma once
|
|
#if defined(OS_LINUX)
|
|
|
|
#include <linux/capability.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Check that the current process has Linux capability. Examples: CAP_IPC_LOCK, CAP_NET_ADMIN.
|
|
bool hasLinuxCapability(int cap);
|
|
|
|
}
|
|
|
|
#endif
|