Skip to content

Commit

Permalink
Fix include sys/time.h and time.h. Both are POSIX 2001.
Browse files Browse the repository at this point in the history
Found by: thommey
Patch by: michaelortmann
Fixes: #1619
  • Loading branch information
michaelortmann authored Jun 16, 2024
1 parent e931e22 commit 95f630e
Show file tree
Hide file tree
Showing 12 changed files with 2,049 additions and 1,646 deletions.
125 changes: 66 additions & 59 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@
#undef EGG_VERSION

/* Define to nothing if C supports flexible array members, and to 1 if it does
not. That way, with a declaration like `struct s { int n; double
not. That way, with a declaration like 'struct s { int n; double
d[FLEXIBLE_ARRAY_MEMBER]; };', the struct hack can be used with pre-C99
compilers. When computing the size of such an object, don't use 'sizeof
(struct s)' as it overestimates the size. Use 'offsetof (struct s, d)'
instead. Don't use 'offsetof (struct s, d[0])', as this doesn't work with
MSVC and with C++ compilers. */
#undef FLEXIBLE_ARRAY_MEMBER

/* Define to 1 if you have the `a2i_IPADDRESS' function. */
/* Define to 1 if you have the 'a2i_IPADDRESS' function. */
#undef HAVE_A2I_IPADDRESS

/* Define to 1 if you have the <arpa/inet.h> header file. */
Expand All @@ -73,48 +73,48 @@
/* Define if b64_ntop exists. */
#undef HAVE_BASE64

/* Define to 1 if you have the declaration of `tzname', and to 0 if you don't.
/* Define to 1 if you have the declaration of 'tzname', and to 0 if you don't.
*/
#undef HAVE_DECL_TZNAME

/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
/* Define to 1 if you have the <dirent.h> header file, and it defines 'DIR'.
*/
#undef HAVE_DIRENT_H

/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H

/* Define to 1 if you have the `dlopen' function. */
/* Define to 1 if you have the 'dlopen' function. */
#undef HAVE_DLOPEN

/* Define to 1 if you have the <dl.h> header file. */
#undef HAVE_DL_H

/* Define to 1 if you have the `dprintf' function. */
/* Define to 1 if you have the 'dprintf' function. */
#undef HAVE_DPRINTF

/* Define to 1 if you have the `EVP_md5' function. */
/* Define to 1 if you have the 'EVP_md5' function. */
#undef HAVE_EVP_MD5

/* Define to 1 if you have the `EVP_PKEY_get1_EC_KEY' function. */
/* Define to 1 if you have the 'EVP_PKEY_get1_EC_KEY' function. */
#undef HAVE_EVP_PKEY_GET1_EC_KEY

/* Define to 1 if you have the `EVP_sha1' function. */
/* Define to 1 if you have the 'EVP_sha1' function. */
#undef HAVE_EVP_SHA1

/* Define to 1 if you have the `explicit_bzero' function. */
/* Define to 1 if you have the 'explicit_bzero' function. */
#undef HAVE_EXPLICIT_BZERO

/* Define to 1 if you have the `explicit_memset' function. */
/* Define to 1 if you have the 'explicit_memset' function. */
#undef HAVE_EXPLICIT_MEMSET

/* Define to 1 if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H

/* Define to 1 if you have the `getpagesize' function. */
/* Define to 1 if you have the 'getpagesize' function. */
#undef HAVE_GETPAGESIZE

/* Define to 1 if you have the `getrandom' function. */
/* Define to 1 if you have the 'getrandom' function. */
#undef HAVE_GETRANDOM

/* Define to 1 if you have the in6addr_any constant. */
Expand All @@ -123,31 +123,31 @@
/* Define to 1 if you have the in6addr_loopback constant. */
#undef HAVE_IN6ADDR_LOOPBACK

/* Define to 1 if you have the `inet_aton' function. */
/* Define to 1 if you have the 'inet_aton' function. */
#undef HAVE_INET_ATON

/* Define to 1 if the system has the type `intptr_t'. */
/* Define to 1 if the system has the type 'intptr_t'. */
#undef HAVE_INTPTR_T

/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H

/* Define to 1 if you have the `isascii' function. */
/* Define to 1 if you have the 'isascii' function. */
#undef HAVE_ISASCII

/* Define to 1 if you have the `crypto' library (-lcrypto). */
/* Define to 1 if you have the 'crypto' library (-lcrypto). */
#undef HAVE_LIBCRYPTO

/* Define to 1 if you have the `dld' library (-ldld). */
/* Define to 1 if you have the 'dld' library (-ldld). */
#undef HAVE_LIBDLD

/* Define to 1 if you have the `ssl' library (-lssl). */
/* Define to 1 if you have the 'ssl' library (-lssl). */
#undef HAVE_LIBSSL

/* Define to 1 if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H

/* Define to 1 if you have the `load' function. */
/* Define to 1 if you have the 'load' function. */
#undef HAVE_LOAD

/* Define to 1 if you have the <loader.h> header file. */
Expand All @@ -162,28 +162,28 @@
/* Define to 1 if you have the <mach-o/rld.h> header file. */
#undef HAVE_MACH_O_RLD_H

/* Define to 1 if you have the `MD5_Final' function. */
/* Define to 1 if you have the 'MD5_Final' function. */
#undef HAVE_MD5_FINAL

/* Define to 1 if you have the `MD5_Init' function. */
/* Define to 1 if you have the 'MD5_Init' function. */
#undef HAVE_MD5_INIT

/* Define to 1 if you have the `MD5_Update' function. */
/* Define to 1 if you have the 'MD5_Update' function. */
#undef HAVE_MD5_UPDATE

/* Define to 1 if you have the `memset_explicit' function. */
/* Define to 1 if you have the 'memset_explicit' function. */
#undef HAVE_MEMSET_EXPLICIT

/* Define to 1 if you have the `memset_s' function. */
/* Define to 1 if you have the 'memset_s' function. */
#undef HAVE_MEMSET_S

/* Define to 1 if you have the <minix/config.h> header file. */
#undef HAVE_MINIX_CONFIG_H

/* Define to 1 if you have a working `mmap' system call. */
/* Define to 1 if you have a working 'mmap' system call. */
#undef HAVE_MMAP

/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
/* Define to 1 if you have the <ndir.h> header file, and it defines 'DIR'. */
#undef HAVE_NDIR_H

/* Define to 1 if you have the <netdb.h> header file. */
Expand All @@ -195,7 +195,7 @@
/* Do we have <net/errno.h>? */
#undef HAVE_NET_ERRNO_H

/* Define to 1 if you have the `NSLinkModule' function. */
/* Define to 1 if you have the 'NSLinkModule' function. */
#undef HAVE_NSLINKMODULE

/* Define this if your OpenSSL library has MD5 cipher support. */
Expand All @@ -216,13 +216,13 @@
/* Define to 1 if you have the <rld.h> header file. */
#undef HAVE_RLD_H

/* Define to 1 if you have the `rld_load' function. */
/* Define to 1 if you have the 'rld_load' function. */
#undef HAVE_RLD_LOAD

/* Define to 1 if you have the `shl_load' function. */
/* Define to 1 if you have the 'shl_load' function. */
#undef HAVE_SHL_LOAD

/* Define to 1 if you have the `snprintf' function. */
/* Define to 1 if you have the 'snprintf' function. */
#undef HAVE_SNPRINTF

/* Define to 1 if you have the <stdarg.h> header file. */
Expand All @@ -246,26 +246,26 @@
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H

/* Define to 1 if you have the `strlcpy' function. */
/* Define to 1 if you have the 'strlcpy' function. */
#undef HAVE_STRLCPY

/* Define to 1 if the system has the type `struct in6_addr'. */
/* Define to 1 if the system has the type 'struct in6_addr'. */
#undef HAVE_STRUCT_IN6_ADDR

/* Define to 1 if the system has the type `struct sockaddr_in6'. */
/* Define to 1 if the system has the type 'struct sockaddr_in6'. */
#undef HAVE_STRUCT_SOCKADDR_IN6

/* Define to 1 if `tm_zone' is a member of `struct tm'. */
/* Define to 1 if 'tm_zone' is a member of 'struct tm'. */
#undef HAVE_STRUCT_TM_TM_ZONE

/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
/* Define to 1 if you have the <sys/dir.h> header file, and it defines 'DIR'.
*/
#undef HAVE_SYS_DIR_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/ndir.h> header file, and it defines `DIR'.
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines 'DIR'.
*/
#undef HAVE_SYS_NDIR_H

Expand All @@ -287,18 +287,21 @@
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H

/* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use
`HAVE_STRUCT_TM_TM_ZONE' instead. */
/* Define to 1 if you have the <time.h> header file. */
#undef HAVE_TIME_H

/* Define to 1 if your 'struct tm' has 'tm_zone'. Deprecated, use
'HAVE_STRUCT_TM_TM_ZONE' instead. */
#undef HAVE_TM_ZONE

/* Define to 1 if you don't have `tm_zone' but do have the external array
`tzname'. */
/* Define to 1 if you don't have 'tm_zone' but do have the external array
'tzname'. */
#undef HAVE_TZNAME

/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H

/* Define to 1 if you have the `vsnprintf' function. */
/* Define to 1 if you have the 'vsnprintf' function. */
#undef HAVE_VSNPRINTF

/* Define to 1 if you have the <wchar.h> header file. */
Expand Down Expand Up @@ -357,31 +360,31 @@
/* Define if running under QNX. */
#undef QNX_HACKS

/* Define to the type of arg 1 for `select'. */
/* Define to the type of arg 1 for 'select'. */
#undef SELECT_TYPE_ARG1

/* Define to the type of args 2, 3 and 4 for `select'. */
/* Define to the type of args 2, 3 and 4 for 'select'. */
#undef SELECT_TYPE_ARG234

/* Define to the type of arg 5 for `select'. */
/* Define to the type of arg 5 for 'select'. */
#undef SELECT_TYPE_ARG5

/* The size of `char', as computed by sizeof. */
/* The size of 'char', as computed by sizeof. */
#undef SIZEOF_CHAR

/* The size of `int', as computed by sizeof. */
/* The size of 'int', as computed by sizeof. */
#undef SIZEOF_INT

/* The size of `long', as computed by sizeof. */
/* The size of 'long', as computed by sizeof. */
#undef SIZEOF_LONG

/* The size of `short', as computed by sizeof. */
/* The size of 'short', as computed by sizeof. */
#undef SIZEOF_SHORT

/* The size of `void*', as computed by sizeof. */
/* The size of 'void*', as computed by sizeof. */
#undef SIZEOF_VOIDP

/* Define to 1 if all of the C90 standard headers exist (not just the ones
/* Define to 1 if all of the C89 standard headers exist (not just the ones
required in a freestanding environment). This macro is provided for
backward compatibility; new code need not use it. */
#undef STDC_HEADERS
Expand All @@ -392,10 +395,10 @@
/* Define this to enable SSL support. */
#undef TLS

/* Define to 1 if your <sys/time.h> declares `struct tm'. */
/* Define to 1 if your <sys/time.h> declares 'struct tm'. */
#undef TM_IN_SYS_TIME

/* Enable extensions on AIX 3, Interix. */
/* Enable extensions on AIX, Interix, z/OS. */
#ifndef _ALL_SOURCE
# undef _ALL_SOURCE
#endif
Expand Down Expand Up @@ -456,11 +459,15 @@
#ifndef __STDC_WANT_IEC_60559_DFP_EXT__
# undef __STDC_WANT_IEC_60559_DFP_EXT__
#endif
/* Enable extensions specified by C23 Annex F. */
#ifndef __STDC_WANT_IEC_60559_EXT__
# undef __STDC_WANT_IEC_60559_EXT__
#endif
/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
# undef __STDC_WANT_IEC_60559_FUNCS_EXT__
#endif
/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */
/* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015. */
#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
# undef __STDC_WANT_IEC_60559_TYPES_EXT__
#endif
Expand Down Expand Up @@ -498,14 +505,14 @@
/* Define this to a 64-bit type on Cygwin to satisfy OpenSSL dependencies. */
#undef __int64

/* Define to empty if `const' does not conform to ANSI C. */
/* Define to empty if 'const' does not conform to ANSI C. */
#undef const

/* Define this to ASN1_STRING_get0_data when using OpenSSL 1.1.0+,
ASN1_STRING_data otherwise. */
#undef egg_ASN1_string_data

/* Define to `__inline__' or `__inline' if that's what the C compiler
/* Define to '__inline__' or '__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
#undef inline
Expand All @@ -518,14 +525,14 @@
/* Define as a signed integer type capable of holding a process identifier. */
#undef pid_t

/* Define to `unsigned int' if <sys/types.h> does not define. */
/* Define as 'unsigned int' if <stddef.h> doesn't define. */
#undef size_t

/* Substitute for socklen_t */
#undef socklen_t

/* Define to empty if the keyword `volatile' does not work. Warning: valid
code using `volatile' can become incorrect without. Disable with care. */
/* Define to empty if the keyword 'volatile' does not work. Warning: valid
code using 'volatile' can become incorrect without. Disable with care. */
#undef volatile

#endif /* !_EGG_CONFIG_H */
Loading

0 comments on commit 95f630e

Please sign in to comment.