Emit headers with #include <parse_units.h> so that struct units is defined

so that extern struct units <foo> will not cause errors with gcc4.x
This commit is contained in:
matt 2005-04-25 01:25:25 +00:00
parent 35f4d7fe23
commit 5ac7f26c22

View File

@ -35,7 +35,7 @@
#ifdef __RCSID
__RCSID("$Heimdal: gen.c,v 1.50 2003/04/17 07:09:18 lha Exp $"
"$NetBSD: gen.c,v 1.6 2003/05/15 21:36:39 lha Exp $");
"$NetBSD: gen.c,v 1.7 2005/04/25 01:25:25 matt Exp $");
#endif
FILE *headerfile, *codefile, *logfile;
@ -92,7 +92,8 @@ init_generate (const char *filename, const char *base)
"#define __%s_h__\n\n", headerbase, headerbase);
fprintf (headerfile,
"#include <stddef.h>\n"
"#include <time.h>\n\n");
"#include <time.h>\n"
"#include <parse_units.h>\n\n");
#ifndef HAVE_TIMEGM
fprintf (headerfile, "time_t timegm (struct tm*);\n\n");
#endif