From: Michael S. Tsirkin Date: Mon, 07 Aug 2006 20:26:10 GMT Subject: [PATCH] make git compile on old version of engarde linux Message-ID: <20060807202610.GB24206@mellanox.co.il> The following makes git build on my instance of Engarde Linux 1.x The definition of S_IFLNK and S_ISLNK seems to be mising in the headers, but a simple test showed that the correct value for it is still 0120000, same as on more modern systems. With this patch, git built with $make NO_CURL=1 NO_SYMLINK_HEAD=1 NO_PYTHON=1 seems to work with no issues so far (more than a week now). --- Make git build on Engarde Linux 1.x (which is missing the definition for S_IFLNK/S_ISLNK) Signed-off-by: Michael S. Tsirkin --- git/cache.h.orig Thu Jun 29 11:43:45 2006 +++ git/cache.h Thu Jun 29 11:45:13 2006 @@ -6,6 +6,13 @@ #include SHA1_HEADER #include +#ifndef S_IFLNK +#define S_IFLNK 0120000 +#endif +#ifndef S_ISLNK +#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) +#endif + #if ZLIB_VERNUM < 0x1200 #define deflateBound(c,s) ((s) + (((s) + 7) >> 3) + (((s) + 63) >> 6) + 11) #endif -- MST