mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 19:50:24 +02:00
be sure to include time.h for struct timespec
* libguile/gen-scmconfig.c: The GNU libc manual says that struct timespec is defined in time.h. So, just include both sys/time.h and time.h, if they are available.
This commit is contained in:
parent
13e3d3d95d
commit
3b6e619824
1 changed files with 9 additions and 10 deletions
|
@ -149,17 +149,16 @@ main (int argc, char *argv[])
|
||||||
pf ("/* limits.h not available */\n");
|
pf ("/* limits.h not available */\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# ifdef TIME_WITH_SYS_TIME
|
#if HAVE_SYS_TIME_H
|
||||||
pf ("#include <sys/time.h>\n");
|
|
||||||
pf ("#include <time.h>\n");
|
|
||||||
# else
|
|
||||||
# ifdef HAVE_SYS_TIME_H
|
|
||||||
pf ("#include <sys/time.h>\n");
|
pf ("#include <sys/time.h>\n");
|
||||||
#else
|
#else
|
||||||
# ifdef HAVE_TIME_H
|
pf ("/* sys/time.h not available */\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if HAVE_TIME_H
|
||||||
pf ("#include <time.h>\n");
|
pf ("#include <time.h>\n");
|
||||||
# endif
|
#else
|
||||||
# endif
|
pf ("/* time.h not available */\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pf("\n");
|
pf("\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue