+/* Fake ${rel_source_file}, created by GCC.
+ The functions declared in this file do not necessarily exist in
+ your C library. */
+#ifndef __${rel_source_ident}
+#define __${rel_source_ident}
+
+#define __need_NULL
+#define __need_size_t
+#include <stddef.h>
+EOF
+ # Insert special stuff for particular files here.
+ case ${rel_source_file} in
+ time.h)
+ # If time.h doesn't exist, find out if sys/time.h does.
+ if test -f $src_dir_std/sys/time.h \
+ || grep "sys/time.h" fixproto.list >/dev/null ; then
+ # It does; include it and hope it has the needed declarations.
+ # Some versions require sys/types.h.
+ cat >>tmp.h <<EOF
+
+#include <sys/types.h>
+#include <sys/time.h>
+EOF
+ else
+ # It doesn't. Make up plausible definitions for time_t, clock_t.
+ # Forward-declare struct tm. Hope nobody tries to use it. (Odds
+ # are they won't.)
+ cat >>tmp.h <<EOF
+
+typedef long time_t;
+typedef long clock_t;
+struct tm;
+EOF
+ fi ;;
+ esac
+ cat >>tmp.h <<EOF
+
+#endif /* __${rel_source_ident} */