summaryrefslogtreecommitdiff
path: root/src/libbasic/include/basic/missing_syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libbasic/include/basic/missing_syscall.h')
-rw-r--r--src/libbasic/include/basic/missing_syscall.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libbasic/include/basic/missing_syscall.h b/src/libbasic/include/basic/missing_syscall.h
index d502d3b9ca..2929123679 100644
--- a/src/libbasic/include/basic/missing_syscall.h
+++ b/src/libbasic/include/basic/missing_syscall.h
@@ -22,6 +22,10 @@
/* Missing glibc definitions to access certain kernel APIs */
+#if __INCLUDE_LEVEL__ <= 1
+#error "Do not include missing_syscall.h directly; include it through missing.h."
+#endif
+
#if !HAVE_DECL_PIVOT_ROOT
static inline int pivot_root(const char *new_root, const char *put_old) {
return syscall(SYS_pivot_root, new_root, put_old);