diff options
author | dzwdz | 2021-09-05 19:04:21 +0200 |
---|---|---|
committer | dzwdz | 2021-09-05 19:04:21 +0200 |
commit | e447090093a01fea0b27c4340fcb54bbf9ae3396 (patch) | |
tree | 5a9b6e120caa68f9a6f505499bb1a67fa352ee68 /src/shared/syscalls.h | |
parent | 252f5e40c1c054e6ad52a413567460f3ed2917f4 (diff) |
error out when <*/types.h> isn't included in headers which need it
Diffstat (limited to 'src/shared/syscalls.h')
-rw-r--r-- | src/shared/syscalls.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 <stddef.h> +#ifndef TYPES_INCLUDED +# error "please include <kernel/types.h> or <init/types.h> before this file" +#endif + typedef int handle_t; enum { |