threads / patch / 5169

patchmake git compile on old version of engarde linux

Subject: [PATCH] make git compile on old version of engarde linux

## tl;dr

One message between Aug 7, 2006 and Aug 7, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Michael S. Tsirkin· Aug 7, 2006, 20:26 UTC · lore
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 <mst@mellanox.co.il>

--- git/cache.h.orig Thu Jun 29 11:43:45 2006 +++ git/cache.h Thu Jun 29 11:45:13 2006

Show changes to diff +7 −0
@@ -6,6 +6,13 @@
 #include SHA1_HEADER
 #include <zlib.h>
 
+#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

← back to recent threads