Doing diffs in .: --- ./xlators/storage/posix/src/posix.h.~1~ 2007-03-18 17:39:31.000000000 -0700 +++ ./xlators/storage/posix/src/posix.h 2007-06-02 16:30:39.000000000 -0700 @@ -6,24 +6,13 @@ #include #include "xlator.h" +#include +#ifndef PATH_MAX // FIXME: possible portability issue if we ever run on other POSIX systems #include +#endif //#include -#define WITH_DIR_PREPENDED(path, var, code) do { \ - char var[PATH_MAX]; \ - memset (var, 0, PATH_MAX);\ - strcpy (var, ((struct posix_private *)this->private)->base_path); \ - strcpy (var+((struct posix_private *)this->private)->base_path_length, path); \ - code ; \ -} while (0); - -#define GET_DIR_PREPENDED(path, var) do { \ - char var[PATH_MAX]; \ - strcpy (var, ((struct posix_private *)this->private)->base_path); \ - strcpy (var+((struct posix_private *)this->private)->base_path_length, path); \ -} while (0); - struct posix_private { int32_t temp; char is_stateless; --------------