diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-11-03 14:13:45 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-11-03 14:14:14 +0200 |
commit | 759b73a4293e56209e922bf58d7028234e854338 (patch) | |
tree | 73a0b25f0c80c1a07d091bd035957dad3788e85c /misc | |
parent | b7678c0a40898debdf7396c84967411efbfaf345 (diff) | |
download | librpm-tizen-759b73a4293e56209e922bf58d7028234e854338.tar.gz librpm-tizen-759b73a4293e56209e922bf58d7028234e854338.tar.bz2 librpm-tizen-759b73a4293e56209e922bf58d7028234e854338.zip |
Ensure PATH_MAX is defined (ticket #3) Adam Tkac
- POSIX doesn't require PATH_MAX to be defined as constant, and Hurd
doesn't define it...
- deal with it just once in system.h for now, the proper fix is to get
rid of needing it at all (ie add a mallocing realpath() clone to librpmio)
- patch from Adam Tkac
Diffstat (limited to 'misc')
-rw-r--r-- | misc/realpath.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/misc/realpath.c b/misc/realpath.c index fe5095933..c0908d3a1 100644 --- a/misc/realpath.c +++ b/misc/realpath.c @@ -19,18 +19,6 @@ extern int errno; #endif -#ifndef PATH_MAX -#ifdef _POSIX_VERSION -#define PATH_MAX _POSIX_PATH_MAX -#else -#ifdef MAXPATHLEN -#define PATH_MAX MAXPATHLEN -#else -#define PATH_MAX 1024 -#endif -#endif -#endif - #define MAX_READLINKS 32 #ifdef __STDC__ |