{"thread":{"id":"5169","subject":"[PATCH] make git compile on old version of engarde linux","startedAt":"2006-08-07T20:26:10Z","lastAt":"2006-08-07T20:26:10Z","messageCount":1,"participants":["Michael S. Tsirkin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"24949","messageId":"20060807202610.GB24206@mellanox.co.il","threadId":"5169","inReplyTo":null,"subject":"[PATCH] make git compile on old version of engarde linux","fromName":"Michael S. Tsirkin","fromEmail":"mst@mellanox.co.il","sentAt":"2006-08-07T20:26:10Z","receivedAt":"2006-08-07T20:26:10Z","isPatch":true,"sender":{"key":"mst@kernel.org","avatar":null},"body":"The following makes git build on my instance of Engarde Linux 1.x\n\nThe definition of S_IFLNK and S_ISLNK seems to be mising in the headers,\nbut a simple test showed that the correct value for it is still 0120000,\nsame as on more modern systems.\n\nWith this patch, git built with \n$make NO_CURL=1 NO_SYMLINK_HEAD=1 NO_PYTHON=1\nseems to work with no issues so far (more than a week now).\n\n---\n\nMake git build on Engarde Linux 1.x (which is missing\nthe definition for S_IFLNK/S_ISLNK)\n\nSigned-off-by: Michael S. Tsirkin <mst@mellanox.co.il>\n\n--- git/cache.h.orig\tThu Jun 29 11:43:45 2006\n+++ git/cache.h\tThu Jun 29 11:45:13 2006\n@@ -6,6 +6,13 @@\n #include SHA1_HEADER\n #include <zlib.h>\n \n+#ifndef S_IFLNK\n+#define S_IFLNK        0120000\n+#endif\n+#ifndef S_ISLNK\n+#define S_ISLNK(m)    (((m) & S_IFMT) == S_IFLNK)\n+#endif\n+\n #if ZLIB_VERNUM < 0x1200\n #define deflateBound(c,s)  ((s) + (((s) + 7) >> 3) + (((s) + 63) >> 6) + 11)\n #endif\n\n-- \nMST\n"}]}