1
Fork 0
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:
Andy Wingo 2012-07-06 10:43:02 +02:00
parent 13e3d3d95d
commit 3b6e619824

View file

@ -149,18 +149,17 @@ 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 <sys/time.h>\n");
#else
pf ("/* sys/time.h not available */\n");
#endif
#if HAVE_TIME_H
pf ("#include <time.h>\n"); pf ("#include <time.h>\n");
# else #else
# ifdef HAVE_SYS_TIME_H pf ("/* time.h not available */\n");
pf ("#include <sys/time.h>\n"); #endif
# else
# ifdef HAVE_TIME_H
pf ("#include <time.h>\n");
# endif
# endif
# endif
pf("\n"); pf("\n");
#ifdef STDC_HEADERS #ifdef STDC_HEADERS