Skip to content

Commit 95f630e

Browse files
Fix include sys/time.h and time.h. Both are POSIX 2001.
Found by: thommey Patch by: michaelortmann Fixes: #1619
1 parent e931e22 commit 95f630e

File tree

12 files changed

+2049
-1646
lines changed

12 files changed

+2049
-1646
lines changed

config.h.in

+66-59
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@
5656
#undef EGG_VERSION
5757

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

67-
/* Define to 1 if you have the `a2i_IPADDRESS' function. */
67+
/* Define to 1 if you have the 'a2i_IPADDRESS' function. */
6868
#undef HAVE_A2I_IPADDRESS
6969

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

76-
/* Define to 1 if you have the declaration of `tzname', and to 0 if you don't.
76+
/* Define to 1 if you have the declaration of 'tzname', and to 0 if you don't.
7777
*/
7878
#undef HAVE_DECL_TZNAME
7979

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

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

87-
/* Define to 1 if you have the `dlopen' function. */
87+
/* Define to 1 if you have the 'dlopen' function. */
8888
#undef HAVE_DLOPEN
8989

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

93-
/* Define to 1 if you have the `dprintf' function. */
93+
/* Define to 1 if you have the 'dprintf' function. */
9494
#undef HAVE_DPRINTF
9595

96-
/* Define to 1 if you have the `EVP_md5' function. */
96+
/* Define to 1 if you have the 'EVP_md5' function. */
9797
#undef HAVE_EVP_MD5
9898

99-
/* Define to 1 if you have the `EVP_PKEY_get1_EC_KEY' function. */
99+
/* Define to 1 if you have the 'EVP_PKEY_get1_EC_KEY' function. */
100100
#undef HAVE_EVP_PKEY_GET1_EC_KEY
101101

102-
/* Define to 1 if you have the `EVP_sha1' function. */
102+
/* Define to 1 if you have the 'EVP_sha1' function. */
103103
#undef HAVE_EVP_SHA1
104104

105-
/* Define to 1 if you have the `explicit_bzero' function. */
105+
/* Define to 1 if you have the 'explicit_bzero' function. */
106106
#undef HAVE_EXPLICIT_BZERO
107107

108-
/* Define to 1 if you have the `explicit_memset' function. */
108+
/* Define to 1 if you have the 'explicit_memset' function. */
109109
#undef HAVE_EXPLICIT_MEMSET
110110

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

114-
/* Define to 1 if you have the `getpagesize' function. */
114+
/* Define to 1 if you have the 'getpagesize' function. */
115115
#undef HAVE_GETPAGESIZE
116116

117-
/* Define to 1 if you have the `getrandom' function. */
117+
/* Define to 1 if you have the 'getrandom' function. */
118118
#undef HAVE_GETRANDOM
119119

120120
/* Define to 1 if you have the in6addr_any constant. */
@@ -123,31 +123,31 @@
123123
/* Define to 1 if you have the in6addr_loopback constant. */
124124
#undef HAVE_IN6ADDR_LOOPBACK
125125

126-
/* Define to 1 if you have the `inet_aton' function. */
126+
/* Define to 1 if you have the 'inet_aton' function. */
127127
#undef HAVE_INET_ATON
128128

129-
/* Define to 1 if the system has the type `intptr_t'. */
129+
/* Define to 1 if the system has the type 'intptr_t'. */
130130
#undef HAVE_INTPTR_T
131131

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

135-
/* Define to 1 if you have the `isascii' function. */
135+
/* Define to 1 if you have the 'isascii' function. */
136136
#undef HAVE_ISASCII
137137

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

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

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

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

150-
/* Define to 1 if you have the `load' function. */
150+
/* Define to 1 if you have the 'load' function. */
151151
#undef HAVE_LOAD
152152

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

165-
/* Define to 1 if you have the `MD5_Final' function. */
165+
/* Define to 1 if you have the 'MD5_Final' function. */
166166
#undef HAVE_MD5_FINAL
167167

168-
/* Define to 1 if you have the `MD5_Init' function. */
168+
/* Define to 1 if you have the 'MD5_Init' function. */
169169
#undef HAVE_MD5_INIT
170170

171-
/* Define to 1 if you have the `MD5_Update' function. */
171+
/* Define to 1 if you have the 'MD5_Update' function. */
172172
#undef HAVE_MD5_UPDATE
173173

174-
/* Define to 1 if you have the `memset_explicit' function. */
174+
/* Define to 1 if you have the 'memset_explicit' function. */
175175
#undef HAVE_MEMSET_EXPLICIT
176176

177-
/* Define to 1 if you have the `memset_s' function. */
177+
/* Define to 1 if you have the 'memset_s' function. */
178178
#undef HAVE_MEMSET_S
179179

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

183-
/* Define to 1 if you have a working `mmap' system call. */
183+
/* Define to 1 if you have a working 'mmap' system call. */
184184
#undef HAVE_MMAP
185185

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

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

198-
/* Define to 1 if you have the `NSLinkModule' function. */
198+
/* Define to 1 if you have the 'NSLinkModule' function. */
199199
#undef HAVE_NSLINKMODULE
200200

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

219-
/* Define to 1 if you have the `rld_load' function. */
219+
/* Define to 1 if you have the 'rld_load' function. */
220220
#undef HAVE_RLD_LOAD
221221

222-
/* Define to 1 if you have the `shl_load' function. */
222+
/* Define to 1 if you have the 'shl_load' function. */
223223
#undef HAVE_SHL_LOAD
224224

225-
/* Define to 1 if you have the `snprintf' function. */
225+
/* Define to 1 if you have the 'snprintf' function. */
226226
#undef HAVE_SNPRINTF
227227

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

249-
/* Define to 1 if you have the `strlcpy' function. */
249+
/* Define to 1 if you have the 'strlcpy' function. */
250250
#undef HAVE_STRLCPY
251251

252-
/* Define to 1 if the system has the type `struct in6_addr'. */
252+
/* Define to 1 if the system has the type 'struct in6_addr'. */
253253
#undef HAVE_STRUCT_IN6_ADDR
254254

255-
/* Define to 1 if the system has the type `struct sockaddr_in6'. */
255+
/* Define to 1 if the system has the type 'struct sockaddr_in6'. */
256256
#undef HAVE_STRUCT_SOCKADDR_IN6
257257

258-
/* Define to 1 if `tm_zone' is a member of `struct tm'. */
258+
/* Define to 1 if 'tm_zone' is a member of 'struct tm'. */
259259
#undef HAVE_STRUCT_TM_TM_ZONE
260260

261-
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
261+
/* Define to 1 if you have the <sys/dir.h> header file, and it defines 'DIR'.
262262
*/
263263
#undef HAVE_SYS_DIR_H
264264

265265
/* Define to 1 if you have the <sys/file.h> header file. */
266266
#undef HAVE_SYS_FILE_H
267267

268-
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
268+
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines 'DIR'.
269269
*/
270270
#undef HAVE_SYS_NDIR_H
271271

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

290-
/* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use
291-
`HAVE_STRUCT_TM_TM_ZONE' instead. */
290+
/* Define to 1 if you have the <time.h> header file. */
291+
#undef HAVE_TIME_H
292+
293+
/* Define to 1 if your 'struct tm' has 'tm_zone'. Deprecated, use
294+
'HAVE_STRUCT_TM_TM_ZONE' instead. */
292295
#undef HAVE_TM_ZONE
293296

294-
/* Define to 1 if you don't have `tm_zone' but do have the external array
295-
`tzname'. */
297+
/* Define to 1 if you don't have 'tm_zone' but do have the external array
298+
'tzname'. */
296299
#undef HAVE_TZNAME
297300

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

301-
/* Define to 1 if you have the `vsnprintf' function. */
304+
/* Define to 1 if you have the 'vsnprintf' function. */
302305
#undef HAVE_VSNPRINTF
303306

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

360-
/* Define to the type of arg 1 for `select'. */
363+
/* Define to the type of arg 1 for 'select'. */
361364
#undef SELECT_TYPE_ARG1
362365

363-
/* Define to the type of args 2, 3 and 4 for `select'. */
366+
/* Define to the type of args 2, 3 and 4 for 'select'. */
364367
#undef SELECT_TYPE_ARG234
365368

366-
/* Define to the type of arg 5 for `select'. */
369+
/* Define to the type of arg 5 for 'select'. */
367370
#undef SELECT_TYPE_ARG5
368371

369-
/* The size of `char', as computed by sizeof. */
372+
/* The size of 'char', as computed by sizeof. */
370373
#undef SIZEOF_CHAR
371374

372-
/* The size of `int', as computed by sizeof. */
375+
/* The size of 'int', as computed by sizeof. */
373376
#undef SIZEOF_INT
374377

375-
/* The size of `long', as computed by sizeof. */
378+
/* The size of 'long', as computed by sizeof. */
376379
#undef SIZEOF_LONG
377380

378-
/* The size of `short', as computed by sizeof. */
381+
/* The size of 'short', as computed by sizeof. */
379382
#undef SIZEOF_SHORT
380383

381-
/* The size of `void*', as computed by sizeof. */
384+
/* The size of 'void*', as computed by sizeof. */
382385
#undef SIZEOF_VOIDP
383386

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

395-
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
398+
/* Define to 1 if your <sys/time.h> declares 'struct tm'. */
396399
#undef TM_IN_SYS_TIME
397400

398-
/* Enable extensions on AIX 3, Interix. */
401+
/* Enable extensions on AIX, Interix, z/OS. */
399402
#ifndef _ALL_SOURCE
400403
# undef _ALL_SOURCE
401404
#endif
@@ -456,11 +459,15 @@
456459
#ifndef __STDC_WANT_IEC_60559_DFP_EXT__
457460
# undef __STDC_WANT_IEC_60559_DFP_EXT__
458461
#endif
462+
/* Enable extensions specified by C23 Annex F. */
463+
#ifndef __STDC_WANT_IEC_60559_EXT__
464+
# undef __STDC_WANT_IEC_60559_EXT__
465+
#endif
459466
/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
460467
#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
461468
# undef __STDC_WANT_IEC_60559_FUNCS_EXT__
462469
#endif
463-
/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */
470+
/* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015. */
464471
#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
465472
# undef __STDC_WANT_IEC_60559_TYPES_EXT__
466473
#endif
@@ -498,14 +505,14 @@
498505
/* Define this to a 64-bit type on Cygwin to satisfy OpenSSL dependencies. */
499506
#undef __int64
500507

501-
/* Define to empty if `const' does not conform to ANSI C. */
508+
/* Define to empty if 'const' does not conform to ANSI C. */
502509
#undef const
503510

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

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

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

524531
/* Substitute for socklen_t */
525532
#undef socklen_t
526533

527-
/* Define to empty if the keyword `volatile' does not work. Warning: valid
528-
code using `volatile' can become incorrect without. Disable with care. */
534+
/* Define to empty if the keyword 'volatile' does not work. Warning: valid
535+
code using 'volatile' can become incorrect without. Disable with care. */
529536
#undef volatile
530537

531538
#endif /* !_EGG_CONFIG_H */

0 commit comments

Comments
 (0)