From e447090093a01fea0b27c4340fcb54bbf9ae3396 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 5 Sep 2021 19:04:21 +0200 Subject: error out when <*/types.h> isn't included in headers which need it --- src/shared/syscalls.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/shared/syscalls.h') diff --git a/src/shared/syscalls.h b/src/shared/syscalls.h index 7a1acaf..0222f37 100644 --- a/src/shared/syscalls.h +++ b/src/shared/syscalls.h @@ -1,8 +1,10 @@ -// requires the user_ptr type from kernel/types.h or init/types.h - #pragma once #include +#ifndef TYPES_INCLUDED +# error "please include or before this file" +#endif + typedef int handle_t; enum { -- cgit v1.2.3