summaryrefslogtreecommitdiff
path: root/libguile
diff options
context:
space:
mode:
authorMike Gran <spk121@yahoo.com>2022-09-15 03:55:17 -0700
committerMike Gran <spk121@yahoo.com>2022-10-14 08:40:23 -0700
commitdf8e772f3c5f8c998b074a2821320544da8fb088 (patch)
tree94069ddb3e920c4a058d0fe5be8a96faca791b23 /libguile
parent3827291425de2cd22ba8026ff8ad08ef64ef8269 (diff)
downloadguile-df8e772f3c5f8c998b074a2821320544da8fb088.tar.gz
Presume time.h and sys/time.h don't conflict when included
Systems on which time.h and sys/time.h conflicted are obsolescent. * configure.ac: remove AC_HEADER_TIME. remove conditional in tm.tm_gmtoff test. * libguile/filesys.c [TIME_WITH_SYS_TIME]: remove conditional * libguile/posix.c [TIME_WITH_SYS_TIME]: remove conditional # Conflicts: # libguile/filesys.c
Diffstat (limited to 'libguile')
-rw-r--r--libguile/filesys.c10
-rw-r--r--libguile/posix.c10
2 files changed, 4 insertions, 16 deletions
diff --git a/libguile/filesys.c b/libguile/filesys.c
index f182f6c79..234f70f77 100644
--- a/libguile/filesys.c
+++ b/libguile/filesys.c
@@ -53,16 +53,10 @@
#include <io.h>
#endif
-#ifdef TIME_WITH_SYS_TIME
+#if HAVE_SYS_TIME_H
# include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-# include <sys/time.h>
-# else
-# include <time.h>
-# endif
#endif
+#include <time.h>
#ifdef LIBC_H_WITH_UNISTD_H
#include <libc.h>
diff --git a/libguile/posix.c b/libguile/posix.c
index 8471818ad..1b8dbd0e4 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -37,16 +37,10 @@
# include <sched.h>
#endif
-#ifdef TIME_WITH_SYS_TIME
+#if HAVE_SYS_TIME_H
# include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-# include <sys/time.h>
-# else
-# include <time.h>
-# endif
#endif
+#include <time.h>
#ifdef LIBC_H_WITH_UNISTD_H
# include <libc.h>