diff -ru a/include/stdio.h b/include/stdio.h
--- a/include/stdio.h	2000-08-04 10:24:39.000000000 +1000
+++ b/include/stdio.h	2005-06-18 14:26:35.000000000 +1000
@@ -34,6 +34,11 @@
 #include <bsd-games.h>
 #include_next <stdio.h>
 
+#include <sys/cdefs.h> 
+__BEGIN_DECLS
+
 #ifndef HAVE_fgetln
 extern char *fgetln(FILE *stream, size_t *len);
 #endif
+
+__END_DECLS
