musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/include/sys
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/select.h 6
-rw-r--r--include/sys/socket.h 6
-rw-r--r--include/sys/syscall.h 4
3 files changed, 3 insertions, 13 deletions
diff --git a/include/sys/select.h b/include/sys/select.h
index dd4176dd..c5a2877f 100644
--- a/include/sys/select.h
+++ b/include/sys/select.h
@@ -4,11 +4,7 @@
extern "C" {
#endif
-#if __STDC_VERSION__ >= 199901L
-#define __restrict restrict
-#elif !defined(__GNUC__)
-#define __restrict
-#endif
+#include <features.h>
#define __NEED_size_t
#define __NEED_time_t
diff --git a/include/sys/socket.h b/include/sys/socket.h
index 7024d232..97d78871 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -4,11 +4,7 @@
extern "C" {
#endif
-#if __STDC_VERSION__ >= 199901L
-#define __restrict restrict
-#elif !defined(__GNUC__)
-#define __restrict
-#endif
+#include <features.h>
#define __NEED_socklen_t
#define __NEED_sa_family_t
diff --git a/include/sys/syscall.h b/include/sys/syscall.h
index 154e5ab5..62564d7d 100644
--- a/include/sys/syscall.h
+++ b/include/sys/syscall.h
@@ -4,9 +4,7 @@
extern "C" {
#endif
-#if __STDC_VERSION__ >= 199901L || defined(__cplusplus)
-#define __inline inline
-#endif
+#include <features.h>
long __syscall_ret(unsigned long);
long __syscall(long, ...);
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月28日 04:57:45 +0000

AltStyle によって変換されたページ (->オリジナル) /