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

[PATCH] Fix compilation of git.c

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 16, 2005, 01:44 UTC
Message-ID
<Pine.LNX.4.63.0511160243360.14176@wbgn013.biozentrum.uni-wuerzburg.de>
Some systems do not define GLOB_ABORTED and GLOB_NOMATCH.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
 git.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

applies-to: c20dc1194fcfa73a7bf6e9d315c878d4f8c2828a 57cce66195a824221c0e9517ff4999daf2fbe2d2

diff --git a/git.c b/git.c
index 583923d..30b3c04 100644
--- a/git.c
+++ b/git.c
@@ -77,13 +77,17 @@ static void list_commands(const char *ex
 	case GLOB_NOSPACE:
 		puts("Out of memory when running glob()");
 		exit(2);
+#ifdef GLOB_ABORTED
 	case GLOB_ABORTED:
 		printf("'%s': Read error: %s\n", exec_path, strerror(errno));
 		exit(2);
+#endif
+#ifdef GLOB_NOMATCH
 	case GLOB_NOMATCH:
 		printf("No git commands available in '%s'.\n", exec_path);
 		printf("Do you need to specify --exec-path or set GIT_EXEC_PATH?\n");
 		exit(1);
+#endif
 	}
 
 	for (i = 0; i < gl.gl_pathc; i++) {
---
0.99.9.GIT
Next: Junio C Hamano
Message 1 of 3 in “Fix compilation of git.c”
  1. Fix compilation of git.cJohannes Schindelin, Nov 16, 2005
  2. Junio C HamanoNov 16, 2005
  3. Andreas EricssonNov 16, 2005

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.