fix: handle EINTR correctly in get_cpu_mask_from_sysfs
[urcu.git] / include / urcu / syscall-compat.h
... / ...
CommitLineData
1// SPDX-FileCopyrightText: 2013 Pierre-Luc St-Charles <pierre-luc.st-charles@polymtl.ca>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef _URCU_SYSCALL_COMPAT_H
6#define _URCU_SYSCALL_COMPAT_H
7
8/*
9 * Userspace RCU library - Syscall Compatibility Header
10 */
11
12#if defined(__ANDROID__) || defined(__sun__) || defined(__GNU__)
13#include <sys/syscall.h>
14#elif defined(__linux__) || defined(__GLIBC__)
15#include <syscall.h>
16
17#elif defined(__CYGWIN__) || defined(__APPLE__) || \
18 defined(__FreeBSD__) || defined(__DragonFly__) || \
19 defined(__OpenBSD__)
20/* Don't include anything on these platforms. */
21
22#else
23#error "Add platform support to urcu/syscall-compat.h"
24#endif
25
26#endif /* _URCU_SYSCALL_COMPAT_H */
This page took 0.021993 seconds and 4 git commands to generate.