David Aguilar <davvid@xxxxxxxxx> writes: > mkstemps() is a BSD extension so provide an implementation > for cross-platform use. > ... > diff --git a/git-compat-util.h b/git-compat-util.h > index c7cf2d5..5a2d4e7 100644 > --- a/git-compat-util.h > +++ b/git-compat-util.h > @@ -113,6 +113,10 @@ > #define PATH_MAX 4096 > #endif > > +#ifndef TMP_MAX > +#define TMP_MAX 16384 > +#endif Giving fallback definition to PATH_MAX and PRIuMAX (as seen in the context of the hunk) makes perfect sense. TMP_MAX on the other hand is being obsoleted in POSIX.1, and more importantly, we do not use it in our program anywhere other than the compatibility implementation of mkstemps(). I'll move this to the file that is used, which is compat/mkstemps.c. I'll further change the constant not to inherit from whatever the platform happens to define TMP_MAX to be. POSIX.1 says "at least 25", but the fallback implementation does not need to be constrained to such a low number. Thanks. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html