mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-23 05:34:47 +03:00

this is a nonstandard header used only by backwards programs, but for some reason it's extremely popular. the recent namespace cleanup fixes broke it, because PATH_MAX and NAME_MAX will not be defined unless an approriate feature test macro has been defined. moreover, it's too late to just #define _GNU_SOURCE in param.h, since limits.h may have already been included. let's just hard-code standard values and be done with it.
16 lines
241 B
C
16 lines
241 B
C
#undef MAXSYMLINKS
|
|
#define MAXSYMLINKS 20
|
|
|
|
#undef MAXHOSTNAMELEN
|
|
#define MAXHOSTNAMELEN 64
|
|
|
|
#undef MAXNAMLEN
|
|
#define MAXNAMLEN 255
|
|
|
|
#undef MAXPATHLEN
|
|
#define MAXPATHLEN 4096
|
|
|
|
#include <sys/resource.h>
|
|
#include <endian.h>
|
|
#include <limits.h>
|