mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
LibC: Define the POSIX TZNAME_MAX limit
POSIX defines this as the "Maximum number of bytes supported for the name of a timezone (not of the TZ variable)." It must have a minimum value of _POSIX_TZNAME_MAX (6). The longest time zone name in the TZDB is about 40 chars, so 64 is chosen here for a little wiggle room, and to round up to a power of 2.
This commit is contained in:
parent
1f051a8e25
commit
6095500263
1 changed files with 2 additions and 0 deletions
|
@ -82,6 +82,8 @@
|
|||
|
||||
#define LINK_MAX 4096
|
||||
|
||||
#define TZNAME_MAX 64
|
||||
|
||||
#ifdef __USE_POSIX
|
||||
# include <bits/posix1_lim.h>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue