On solaris 2.5.1, /usr/include/stdio.h I have:
/*
* The following are known to POSIX and XOPEN, but not to ANSI-C.
*/
#if defined(__EXTENSIONS__) || __STDC__ == 0 || \
defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE)
extern FILE *fdopen(int, const char *);
extern char *ctermid(char *);
extern int fileno(FILE *);
#endif /* defined(__EXTENSIONS__) || __STDC__ == 0 ... */
which results in the following warning:
gcc -c -Wall -g -O2 -msupersparc -Demacs -I. -DHAVE_CONFIG_H
-I/proj/mstar/software/install/include -I/usr/dt/include -I/usr/openwin/include
dgif_lib.c
dgif_lib.c: In function `DGifOpenFileHandle':
dgif_lib.c:81: warning: implicit declaration of function `fdopen'
dgif_lib.c:81: warning: assignment makes pointer from integer without a cast
What's the right way to get fdopen declared for XEmacs?
Since int and pointer are both 32 bit this won't actually
cause a problem, but it should be fixed.
greg