summaryrefslogtreecommitdiff
path: root/src/shared/vfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/vfs.h')
-rw-r--r--src/shared/vfs.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/shared/vfs.h b/src/shared/vfs.h
index d88c424..730a288 100644
--- a/src/shared/vfs.h
+++ b/src/shared/vfs.h
@@ -1,8 +1,9 @@
-// requires the user_ptr type from kernel/types.h or init/types.h
-// TODO add some macro magic which prints an error when it isn't defined
-
#pragma once
+#ifndef TYPES_INCLUDED
+# error "please include <kernel/types.h> or <init/types.h> before this file"
+#endif
+
enum vfs_op_types {
VFSOP_OPEN,
VFSOP_WRITE,