Le mardi, 24 jun 2003, à 06:41 Europe/Paris, Dan Nelson a écrit :
In the last episode (Jun 23), Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum said:
No, not all of them. Just those running FreeBSD. Interresting...
Because on FreeBSD 4.x, stdio.h has this:
#define fileno(p) fileno_unlocked(p) #define fileno_unlocked(p) __sfileno(p) #define __sfileno(p) ((p)->_file)
Same on Darwin / OS X 6.x
, and since none of the macros cast p to FILE*, fileno(0) fails trying to index 0->_file :)
Changing the line in dummy.c to "fileno((FILE*)0);" should work around the problem.
Well let's try :)
/Xavier