mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-11-28 07:30:11 +08:00
d1a1f7e9f0
This patch fixes libgm2/libm2iso/wraptime.cc:InitTM so that it does not always return NULL. The incorrect autoconf macro was used (inside InitTM) and the function short circuited to return NULL. The fix is to use HAVE_SYS_TIME_H and use AC_HEADER_TIME in libgm2/configure.ac. libgm2/ChangeLog: PR modula2/115276 * config.h.in: Regenerate. * configure: Regenerate. * configure.ac: Use AC_HEADER_TIME. * libm2iso/wraptime.cc (InitTM): Check HAVE_SYS_TIME_H before using struct tm to obtain the size. gcc/testsuite/ChangeLog: PR modula2/115276 * gm2/isolib/run/pass/testinittm.mod: New test. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
400 lines
8.8 KiB
C
400 lines
8.8 KiB
C
/* config.h.in. Generated from configure.ac by autoheader. */
|
|
|
|
/* function access exists */
|
|
#undef HAVE_ACCESS
|
|
|
|
/* function brk exists */
|
|
#undef HAVE_BRK
|
|
|
|
/* Define to 1 if the target assembler supports thread-local storage. */
|
|
#undef HAVE_CC_TLS
|
|
|
|
/* function cfmakeraw exists */
|
|
#undef HAVE_CFMAKERAW
|
|
|
|
/* function clock_gettime exists */
|
|
#undef HAVE_CLOCK_GETTIME
|
|
|
|
/* function clock_settime exists */
|
|
#undef HAVE_CLOCK_SETTIME
|
|
|
|
/* function close exists */
|
|
#undef HAVE_CLOSE
|
|
|
|
/* function creat exists */
|
|
#undef HAVE_CREAT
|
|
|
|
/* function ctime exists */
|
|
#undef HAVE_CTIME
|
|
|
|
/* function daylight exists */
|
|
#undef HAVE_DAYLIGHT
|
|
|
|
/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't.
|
|
*/
|
|
#undef HAVE_DECL_GETENV
|
|
|
|
/* Define to 1 if you have the <direct.h> header file. */
|
|
#undef HAVE_DIRECT_H
|
|
|
|
/* Define to 1 if you have the <dirent.h> header file. */
|
|
#undef HAVE_DIRENT_H
|
|
|
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
#undef HAVE_DLFCN_H
|
|
|
|
/* function dup exists */
|
|
#undef HAVE_DUP
|
|
|
|
/* Define to 1 if you have the <errno.h> header file. */
|
|
#undef HAVE_ERRNO_H
|
|
|
|
/* function execve exists */
|
|
#undef HAVE_EXECVE
|
|
|
|
/* function exit exists */
|
|
#undef HAVE_EXIT
|
|
|
|
/* function exp10 exists */
|
|
#undef HAVE_EXP10
|
|
|
|
/* function exp10f exists */
|
|
#undef HAVE_EXP10F
|
|
|
|
/* function exp10l exists */
|
|
#undef HAVE_EXP10L
|
|
|
|
/* function fcntl exists */
|
|
#undef HAVE_FCNTL
|
|
|
|
/* Define to 1 if you have the <fcntl.h> header file. */
|
|
#undef HAVE_FCNTL_H
|
|
|
|
/* function fstat exists */
|
|
#undef HAVE_FSTAT
|
|
|
|
/* function getdents exists */
|
|
#undef HAVE_GETDENTS
|
|
|
|
/* function getgid exists */
|
|
#undef HAVE_GETGID
|
|
|
|
/* Define to 1 if you have the <getopt.h> header file. */
|
|
#undef HAVE_GETOPT_H
|
|
|
|
/* function getopt_long exists */
|
|
#undef HAVE_GETOPT_LONG
|
|
|
|
/* function getopt_long_only exists */
|
|
#undef HAVE_GETOPT_LONG_ONLY
|
|
|
|
/* function getpid exists */
|
|
#undef HAVE_GETPID
|
|
|
|
/* function gettimeofday exists */
|
|
#undef HAVE_GETTIMEOFDAY
|
|
|
|
/* function getuid exists */
|
|
#undef HAVE_GETUID
|
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
#undef HAVE_INTTYPES_H
|
|
|
|
/* function ioctl exists */
|
|
#undef HAVE_IOCTL
|
|
|
|
/* function kill exists */
|
|
#undef HAVE_KILL
|
|
|
|
/* Define to 1 if you have the <langinfo.h> header file. */
|
|
#undef HAVE_LANGINFO_H
|
|
|
|
/* Define to 1 if you have the <limits.h> header file. */
|
|
#undef HAVE_LIMITS_H
|
|
|
|
/* function link exists */
|
|
#undef HAVE_LINK
|
|
|
|
/* function lseek exists */
|
|
#undef HAVE_LSEEK
|
|
|
|
/* Define to 1 if you have the <malloc.h> header file. */
|
|
#undef HAVE_MALLOC_H
|
|
|
|
/* have math.h */
|
|
#undef HAVE_MATH_H
|
|
|
|
/* Define to 1 if you have the <memory.h> header file. */
|
|
#undef HAVE_MEMORY_H
|
|
|
|
/* Define to 1 if you have the <netdb.h> header file. */
|
|
#undef HAVE_NETDB_H
|
|
|
|
/* Define to 1 if you have the <netinet/in.h> header file. */
|
|
#undef HAVE_NETINET_IN_H
|
|
|
|
/* function open exists */
|
|
#undef HAVE_OPEN
|
|
|
|
/* function pause exists */
|
|
#undef HAVE_PAUSE
|
|
|
|
/* function pipe exists */
|
|
#undef HAVE_PIPE
|
|
|
|
/* Define to 1 if you have the <pthread.h> header file. */
|
|
#undef HAVE_PTHREAD_H
|
|
|
|
/* Define to 1 if you have the <pwd.h> header file. */
|
|
#undef HAVE_PWD_H
|
|
|
|
/* function rand exists */
|
|
#undef HAVE_RAND
|
|
|
|
/* function read exists */
|
|
#undef HAVE_READ
|
|
|
|
/* function select exists */
|
|
#undef HAVE_SELECT
|
|
|
|
/* function setgid exists */
|
|
#undef HAVE_SETGID
|
|
|
|
/* function setitimer exists */
|
|
#undef HAVE_SETITIMER
|
|
|
|
/* function settimeofday exists */
|
|
#undef HAVE_SETTIMEOFDAY
|
|
|
|
/* function setuid exists */
|
|
#undef HAVE_SETUID
|
|
|
|
/* Define to 1 if you have the <signal.h> header file. */
|
|
#undef HAVE_SIGNAL_H
|
|
|
|
/* function signbit exists */
|
|
#undef HAVE_SIGNBIT
|
|
|
|
/* function signbitf exists */
|
|
#undef HAVE_SIGNBITF
|
|
|
|
/* function signbitl exists */
|
|
#undef HAVE_SIGNBITL
|
|
|
|
/* Defined if sleep exists. */
|
|
#undef HAVE_SLEEP
|
|
|
|
/* function stat exists */
|
|
#undef HAVE_STAT
|
|
|
|
/* Define to 1 if you have the <stdarg.h> header file. */
|
|
#undef HAVE_STDARG_H
|
|
|
|
/* Define to 1 if you have the <stddef.h> header file. */
|
|
#undef HAVE_STDDEF_H
|
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
|
#undef HAVE_STDINT_H
|
|
|
|
/* Define to 1 if you have the <stdio.h> header file. */
|
|
#undef HAVE_STDIO_H
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
#undef HAVE_STDLIB_H
|
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
|
#undef HAVE_STRINGS_H
|
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
#undef HAVE_STRING_H
|
|
|
|
/* function strsignal exists */
|
|
#undef HAVE_STRSIGNAL
|
|
|
|
/* function strtod exists */
|
|
#undef HAVE_STRTOD
|
|
|
|
/* function strtold exists */
|
|
#undef HAVE_STRTOLD
|
|
|
|
/* Define to 1 if the system has the type `struct stat'. */
|
|
#undef HAVE_STRUCT_STAT
|
|
|
|
/* Define to 1 if the system has the type `struct timespec'. */
|
|
#undef HAVE_STRUCT_TIMESPEC
|
|
|
|
/* Define to 1 if the system has the type `struct timeval'. */
|
|
#undef HAVE_STRUCT_TIMEVAL
|
|
|
|
/* Define to 1 if the system has the type `struct timezone'. */
|
|
#undef HAVE_STRUCT_TIMEZONE
|
|
|
|
/* Define to 1 if the system has the type `struct tm'. */
|
|
#undef HAVE_STRUCT_TM
|
|
|
|
/* Define to 1 if you have the <sys/errno.h> header file. */
|
|
#undef HAVE_SYS_ERRNO_H
|
|
|
|
/* Define to 1 if you have the <sys/file.h> header file. */
|
|
#undef HAVE_SYS_FILE_H
|
|
|
|
/* Define to 1 if you have the <sys/ioctl.h> header file. */
|
|
#undef HAVE_SYS_IOCTL_H
|
|
|
|
/* Define to 1 if you have the <sys/mman.h> header file. */
|
|
#undef HAVE_SYS_MMAN_H
|
|
|
|
/* Define to 1 if you have the <sys/param.h> header file. */
|
|
#undef HAVE_SYS_PARAM_H
|
|
|
|
/* Define to 1 if you have the <sys/resource.h> header file. */
|
|
#undef HAVE_SYS_RESOURCE_H
|
|
|
|
/* Define to 1 if you have the <sys/socket.h> header file. */
|
|
#undef HAVE_SYS_SOCKET_H
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
#undef HAVE_SYS_STAT_H
|
|
|
|
/* Define to 1 if you have the <sys/times.h> header file. */
|
|
#undef HAVE_SYS_TIMES_H
|
|
|
|
/* Define to 1 if you have the <sys/time.h> header file. */
|
|
#undef HAVE_SYS_TIME_H
|
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
#undef HAVE_SYS_TYPES_H
|
|
|
|
/* Define to 1 if you have the <sys/uio.h> header file. */
|
|
#undef HAVE_SYS_UIO_H
|
|
|
|
/* Define to 1 if you have the <sys/wait.h> header file. */
|
|
#undef HAVE_SYS_WAIT_H
|
|
|
|
/* Define to 1 if you have the <termios.h> header file. */
|
|
#undef HAVE_TERMIOS_H
|
|
|
|
/* function times exists */
|
|
#undef HAVE_TIMES
|
|
|
|
/* function timezone exists */
|
|
#undef HAVE_TIMEZONE
|
|
|
|
/* Define to 1 if you have the <time.h> header file. */
|
|
#undef HAVE_TIME_H
|
|
|
|
/* Define if struct tm has a tm_gmtoff field. */
|
|
#undef HAVE_TM_TM_GMTOFF
|
|
|
|
/* function tzname exists */
|
|
#undef HAVE_TZNAME
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
#undef HAVE_UNISTD_H
|
|
|
|
/* function unlink exists */
|
|
#undef HAVE_UNLINK
|
|
|
|
/* Defined if usleep exists. */
|
|
#undef HAVE_USLEEP
|
|
|
|
/* function wait exists */
|
|
#undef HAVE_WAIT
|
|
|
|
/* Define to 1 if you have the <wchar.h> header file. */
|
|
#undef HAVE_WCHAR_H
|
|
|
|
/* function write exists */
|
|
#undef HAVE_WRITE
|
|
|
|
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
*/
|
|
#undef LT_OBJDIR
|
|
|
|
/* Name of package */
|
|
#undef PACKAGE
|
|
|
|
/* Define to the address where bug reports for this package should be sent. */
|
|
#undef PACKAGE_BUGREPORT
|
|
|
|
/* Define to the full name of this package. */
|
|
#undef PACKAGE_NAME
|
|
|
|
/* Define to the full name and version of this package. */
|
|
#undef PACKAGE_STRING
|
|
|
|
/* Define to the one symbol short name of this package. */
|
|
#undef PACKAGE_TARNAME
|
|
|
|
/* Define to the home page for this package. */
|
|
#undef PACKAGE_URL
|
|
|
|
/* Define to the version of this package. */
|
|
#undef PACKAGE_VERSION
|
|
|
|
/* Define to 1 if you have the ANSI C header files. */
|
|
#undef STDC_HEADERS
|
|
|
|
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
|
#undef TIME_WITH_SYS_TIME
|
|
|
|
/* Enable extensions on AIX 3, Interix. */
|
|
#ifndef _ALL_SOURCE
|
|
# undef _ALL_SOURCE
|
|
#endif
|
|
/* Enable GNU extensions on systems that have them. */
|
|
#ifndef _GNU_SOURCE
|
|
# undef _GNU_SOURCE
|
|
#endif
|
|
/* Enable threading extensions on Solaris. */
|
|
#ifndef _POSIX_PTHREAD_SEMANTICS
|
|
# undef _POSIX_PTHREAD_SEMANTICS
|
|
#endif
|
|
/* Enable extensions on HP NonStop. */
|
|
#ifndef _TANDEM_SOURCE
|
|
# undef _TANDEM_SOURCE
|
|
#endif
|
|
/* Enable general extensions on Solaris. */
|
|
#ifndef __EXTENSIONS__
|
|
# undef __EXTENSIONS__
|
|
#endif
|
|
|
|
|
|
/* Version number of package */
|
|
#undef VERSION
|
|
|
|
/* Defined if no way to sleep is available. */
|
|
#undef _GLIBCXX_NO_SLEEP
|
|
|
|
/* Defined if clock_gettime syscall has monotonic and realtime clock support.
|
|
*/
|
|
#undef _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL
|
|
|
|
/* Defined if clock_gettime has monotonic clock support. */
|
|
#undef _GLIBCXX_USE_CLOCK_MONOTONIC
|
|
|
|
/* Defined if clock_gettime has realtime clock support. */
|
|
#undef _GLIBCXX_USE_CLOCK_REALTIME
|
|
|
|
/* Defined if gettimeofday is available. */
|
|
#undef _GLIBCXX_USE_GETTIMEOFDAY
|
|
|
|
/* Defined if nanosleep is available. */
|
|
#undef _GLIBCXX_USE_NANOSLEEP
|
|
|
|
/* Defined if sched_yield is available. */
|
|
#undef _GLIBCXX_USE_SCHED_YIELD
|
|
|
|
/* Defined if Sleep exists. */
|
|
#undef _GLIBCXX_USE_WIN32_SLEEP
|
|
|
|
/* Define to 1 if on MINIX. */
|
|
#undef _MINIX
|
|
|
|
/* Define to 2 if the system does not provide POSIX.1 features except with
|
|
this defined. */
|
|
#undef _POSIX_1_SOURCE
|
|
|
|
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
|
#undef _POSIX_SOURCE
|