summaryrefslogtreecommitdiff
path: root/src/makeint.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2022-07-04 09:47:24 -0400
committerPaul Smith <psmith@gnu.org>2022-07-09 10:46:47 -0400
commit0793658c09a8f33581dae6dfbe2483ea279e72b1 (patch)
tree21389fb0bfd0666054f980a3db4c95a838b6c927 /src/makeint.h
parent98da874c43035a490cdca81331724f233a3d0c9a (diff)
downloadmake-git-0793658c09a8f33581dae6dfbe2483ea279e72b1.tar.gz
Run autoupdate and clean up autoconf usage
We can assume that the return type of a signal handler is void. We can assume that, if sys/time.h exists, it can be included with time.h. * bootstrap: Get the latest version * configure.ac: Require a newer version of autoconf. Remove unnecessary AC_PROG_CC_C99 (already have AC_PROC_CC). Remove unnecessary AC_AIX, AC_ISC_POSIX, AC_MINIX. Remove unnecessary AC_HEADER_STDC, AC_HEADER_TIME, AC_TYPE_SIGNAL. Use strerror to search for the cposix library. * src/commands.c (fatal_error_signal): Assume return type is void. * src/commands.h: Ditto. * src/job.c: Ditto. * src/job.h: Ditto. * src/main.c: Ditto. * src/makeint.h: Ditto. Don't bother with TIME_WITH_SYS_TIME. * src/remote-cstms.c: Check HAVE_SYS_TIME_H. * src/config.ami.template: Remove RETSIGTYPE. * src/config.h-vms.template: Ditto. * src/config.h.W32.template: Ditto. Remove TIME_WITH_SYS_TIME.
Diffstat (limited to 'src/makeint.h')
-rw-r--r--src/makeint.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/makeint.h b/src/makeint.h
index 47c7a600..c37b1a0d 100644
--- a/src/makeint.h
+++ b/src/makeint.h
@@ -94,16 +94,10 @@ char *alloca ();
unless <sys/timeb.h> has been included first. */
# include <sys/timeb.h>
#endif
-#if 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>
#include <errno.h>
@@ -138,10 +132,6 @@ extern int errno;
# define POSIX 1
#endif
-#ifndef RETSIGTYPE
-# define RETSIGTYPE void
-#endif
-
#ifndef sigmask
# define sigmask(sig) (1 << ((sig) - 1))
#endif