わたなべです.

Iwama Misao <AU6M-IWM / j.asahi-net.or.jp> writes:

:gcc -O2 -I. -I/usr/local/include  -c ./missing/snprintf.c
:./missing/snprintf.c:179: parse error before `fpos_t'
:./missing/snprintf.c:179: warning: no semicolon at end of struct or union

という結果を見るとこうしないといけないような気がしますね.

--- missing/snprintf.c.orig	Thu Aug 27 13:14:20 1998
+++ missing/snprintf.c	Tue Oct 13 11:02:18 1998
@@ -114,10 +114,8 @@
  * in a structure will change if fpos_t's are not aligned on 8-byte
  * boundaries.  THIS IS A CROCK, but for now there is no way around it.
  */
-#if !defined(_ANSI_SOURCE) && !defined(__STRICT_ANSI__)
-#if !defined(__hpux)
+#if !defined(_ANSI_SOURCE) && !defined(__STRICT_ANSI__) && !defined(__hpux)
 typedef off_t fpos_t;
-#endif
 #else
 typedef struct __sfpos {
 	char	_pos[8];