git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
MTMichael S. Tsirkin <mst@mellanox.co.il>
Date
Aug 7, 2006, 20:26 UTC
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 <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

@@ -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
Message 1 of 1 in “make git compile on old version of engarde linux”
  1. make git compile on old version of engarde linuxMichael S. Tsirkin, Aug 7, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.