mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +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");
|
||||
#endif
|
||||
|
||||
# ifdef TIME_WITH_SYS_TIME
|
||||
pf ("#include <sys/time.h>\n");
|
||||
pf ("#include <time.h>\n");
|
||||
# else
|
||||
# ifdef HAVE_SYS_TIME_H
|
||||
#if HAVE_SYS_TIME_H
|
||||
pf ("#include <sys/time.h>\n");
|
||||
#else
|
||||
# ifdef HAVE_TIME_H
|
||||
pf ("/* sys/time.h not available */\n");
|
||||
#endif
|
||||
|
||||
#if HAVE_TIME_H
|
||||
pf ("#include <time.h>\n");
|
||||
# endif
|
||||
# endif
|
||||
#else
|
||||
pf ("/* time.h not available */\n");
|
||||
#endif
|
||||
|
||||
pf("\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue