mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-11-24 04:09:41 +00:00
[SV 65273] configure.ac: Remove check for sys/timeb.h
GNU Make doesn't use ftime(); we only checked for this to work around an error in the completely obsolete SCO 3.2 system. Since ftime() is deprecated, including sys/timeb.h has started throwing warnings on newer systems so just remove it completely. Reported by: Collin Funk <collin.funk1@gmail.com> * configure.ac: Remove the check for sys/timeb.h. * src/makeint.h: Remove the include of sys/timeb.h. * src/config.h-vms: Don't define HAVE_SYS_TIMEB_H. * src/config.h.W32: Ditto.
This commit is contained in:
parent
bfbf169b63
commit
b8a2a4424b
4 changed files with 2 additions and 15 deletions
|
@ -67,8 +67,8 @@ AC_HEADER_DIRENT
|
||||||
AC_HEADER_STAT
|
AC_HEADER_STAT
|
||||||
|
|
||||||
AC_CHECK_HEADERS([stdlib.h string.h strings.h locale.h unistd.h limits.h \
|
AC_CHECK_HEADERS([stdlib.h string.h strings.h locale.h unistd.h limits.h \
|
||||||
memory.h sys/param.h sys/resource.h sys/timeb.h sys/time.h \
|
memory.h sys/param.h sys/resource.h sys/time.h sys/select.h \
|
||||||
sys/select.h sys/file.h fcntl.h spawn.h])
|
sys/file.h fcntl.h spawn.h])
|
||||||
|
|
||||||
AM_PROG_CC_C_O
|
AM_PROG_CC_C_O
|
||||||
AC_C_CONST
|
AC_C_CONST
|
||||||
|
|
|
@ -339,11 +339,6 @@ this program. If not, see <https://www.gnu.org/licenses/>. */
|
||||||
/* Define to 1 if you have the <sys/param.h> header file. */
|
/* Define to 1 if you have the <sys/param.h> header file. */
|
||||||
/* #undef HAVE_SYS_PARAM_H */
|
/* #undef HAVE_SYS_PARAM_H */
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/timeb.h> header file. */
|
|
||||||
#ifndef __GNUC__
|
|
||||||
#define HAVE_SYS_TIMEB_H 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/wait.h> header file. */
|
/* Define to 1 if you have the <sys/wait.h> header file. */
|
||||||
/* #undef HAVE_SYS_WAIT_H */
|
/* #undef HAVE_SYS_WAIT_H */
|
||||||
|
|
||||||
|
|
|
@ -388,9 +388,6 @@ this program. If not, see <https://www.gnu.org/licenses/>. */
|
||||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||||
#define HAVE_SYS_STAT_H 1
|
#define HAVE_SYS_STAT_H 1
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/timeb.h> header file. */
|
|
||||||
#define HAVE_SYS_TIMEB_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
#define HAVE_SYS_TIME_H 1
|
#define HAVE_SYS_TIME_H 1
|
||||||
|
|
|
@ -66,11 +66,6 @@ this program. If not, see <https://www.gnu.org/licenses/>. */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifdef HAVE_SYS_TIMEB_H
|
|
||||||
/* SCO 3.2 "devsys 4.2" has a prototype for 'ftime' in <time.h> that bombs
|
|
||||||
unless <sys/timeb.h> has been included first. */
|
|
||||||
# include <sys/timeb.h>
|
|
||||||
#endif
|
|
||||||
#if HAVE_SYS_TIME_H
|
#if HAVE_SYS_TIME_H
|
||||||
# include <sys/time.h>
|
# include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue