From: Rich Felker Date: Sun, 20 Feb 2011 05:28:10 +0000 (-0500) Subject: make sys/param.h not depend on PATH_MAX and NAME_MAX X-Git-Tag: v0.7.0~82 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2b43ef8fc76eaf3912aa98316eae82797494276d;p=oweals%2Fmusl.git make sys/param.h not depend on PATH_MAX and NAME_MAX 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. --- diff --git a/include/sys/param.h b/include/sys/param.h index ded4a16b..1ed5337e 100644 --- a/include/sys/param.h +++ b/include/sys/param.h @@ -5,10 +5,10 @@ #define MAXHOSTNAMELEN 64 #undef MAXNAMLEN -#define MAXNAMLEN NAME_MAX +#define MAXNAMLEN 255 #undef MAXPATHLEN -#define MAXPATHLEN PATH_MAX +#define MAXPATHLEN 4096 #include #include