On 2012-08-16 at 03:55:35 [+0200], Matt Madia <mattmadia@xxxxxxxxx> wrote: > On 8/10/12, mmadia-github.separate-build-environment > <community@xxxxxxxxxxxx> wrote: > For these _HAIKU_BUILD_DECLARE_FUNCTION(), is dirent_t supposed to be > wrapped in _HAIKU_BUILD_IDENTIFIER()? > With it like this, the following errors pop up while building > libroot_build.so > > headers/build/posix_target/target_dirent.h:50: error: using > typedef-name '_haiku_build_dirent_t' after 'struct' > headers/build/posix_target/target_dirent.h:19: error: > '_haiku_build_dirent_t' has a previous declaration here > ... > > Though by having just "dirent_t" without the _HAIKU_BUILD_IDENTIFIER() > wrapper, the build doesn't complain about it. That's just because it is unknown then and "struct <unknownIdentifier>*" is always accepted by the compiler. Please note that there's a struct dirent and a typedef dirent_t. You incorrectly replaced the struct with the typedef. CU, Ingo