At 15:15 Uhr +1100 15.01.2002, Mike Barnes wrote:
[...]
>Oh, small request: could someone put the "include sys/types.h before
>dirent.h" problem into an FAQ somewhere.

Well it's sort of a standard BSD problem, that's why it's not 
mentioned a - unix programmer should know it :). Plus there is no 
"developer FAQ" currently. I am not sure if it is exactly part of our 
goal to write a full detail porting guide, anyway. At least I don't 
see where the resources for such a thing should come, but if anybody 
is interested in working on a such a best, feel free to do so.

FYI: On traditional BSD, which Darwin is based on essentially, this 
#include always required (and mentioned in the man pages!), in fact 
for all the sys/*.h headers you have to first #include sys/types.h. 
This violates POSIX, is easy to fix, the fix has basically no bad 
side effects, it was changed in FreeBSD a long time ago AFAIK, but 
well, on Darwin it's there anyway :)



Max
-- 
-----------------------------------------------
Max Horn
Software Developer

email: <mailto:[EMAIL PROTECTED]>
phone: (+49) 6151-494890

_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to