Add sys/select.h to sys/types.h
This was triggered by gcc for some reason It included sys/types.h and assumed sys/select.h to be there. And that seams to be the case in musl. The problem with relibc here is that sys/types.h is are part of relibc "include/*.h" files, while sys/select.h is generated by cbindgen. That makes it impossible to #include select.h in types.h epsecially that there are files like fcntl.c that uses types.h. They would complain about missing headers. I fixed this by renaming sys/types.h to sys/types_internal.h and then generating types.h using cbindgen as well except for that. however fcntl and dlmalloc can include types_internal instead of types.h
Showing
- include/sys/types_internal.h 3 additions, 4 deletionsinclude/sys/types_internal.h
- src/c/dlmalloc.c 1 addition, 1 deletionsrc/c/dlmalloc.c
- src/c/fcntl.c 1 addition, 1 deletionsrc/c/fcntl.c
- src/header/mod.rs 1 addition, 0 deletionssrc/header/mod.rs
- src/header/sys_types/cbindgen.toml 7 additions, 0 deletionssrc/header/sys_types/cbindgen.toml
- src/header/sys_types/mod.rs 2 additions, 0 deletionssrc/header/sys_types/mod.rs
Loading
Please register or sign in to comment