Ticket #3: rpm-path_max.patch
| File rpm-path_max.patch, 1.4 kB (added by atkac, 3 years ago) |
|---|
-
rpm-4.6.0-rc1/lib/query.c
old new 5 5 6 6 #include "system.h" 7 7 8 #ifndef PATH_MAX9 # define PATH_MAX 25510 #endif11 12 8 #include <inttypes.h> 13 9 14 10 #include <rpm/rpmcli.h> -
rpm-4.6.0-rc1/misc/realpath.c
old new 19 19 extern int errno; 20 20 #endif 21 21 22 #ifndef PATH_MAX23 #ifdef _POSIX_VERSION24 #define PATH_MAX _POSIX_PATH_MAX25 #else26 #ifdef MAXPATHLEN27 #define PATH_MAX MAXPATHLEN28 #else29 #define PATH_MAX 102430 #endif31 #endif32 #endif33 34 22 #define MAX_READLINKS 32 35 23 36 24 #ifdef __STDC__ -
rpm-4.6.0-rc1/system.h
old new 185 185 #include <limits.h> 186 186 #endif 187 187 188 #ifndef PATH_MAX 189 #ifdef _POSIX_PATH_MAX 190 #define PATH_MAX _POSIX_PATH_MAX 191 #elif defined MAXPATHLEN 192 #define PATH_MAX MAXPATHLEN 193 #else 194 #define PATH_MAX 256 195 #endif 196 #endif 197 188 198 #if HAVE_ERR_H 189 199 #include <err.h> 190 200 #endif

