Browse Source

Fix missing types when compiling GDB

jD91mZM2 4 years ago
parent
commit
b7053b673d
1 changed files with 11 additions and 2 deletions
  1. 11 2
      src/header/sys_types/cbindgen.toml

+ 11 - 2
src/header/sys_types/cbindgen.toml

@@ -1,7 +1,16 @@
-sys_includes = ["stddef.h", "sys/types_internal.h", "sys/select.h"]
+# no default C includes - they cause recursive dependencies and do weird stuff
+no_includes = true
+sys_includes = [
+    # Import most necessary, internal types first
+    "sys/types_internal.h",
+
+    "stddef.h",
+    "sys/select.h"
+]
+
 include_guard = "_SYS_TYPES_H"
 language = "C"
 style = "Tag"
 
 [enum]
-prefix_with_name = true
+prefix_with_name = true