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

[PATCH] Fix pkt-line.h to compile with a non-GCC compiler

From
DSDennis Stosberg <dennis@stosberg.net>
Date
Jun 26, 2006, 08:27 UTC
Message-ID
<20060626082707.G1c426a74@leonov.stosberg.net>
In-Reply-To
<20060626082428.G52c9608e@leonov.stosberg.net>
pkt-line.h uses GCC's __attribute__ extension but does not include
git-compat-util.h.  So it will not compile with a compiler that does
not support this extension.
---
 pkt-line.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/pkt-line.h b/pkt-line.h
index 9abef24..9df653f 100644
--- a/pkt-line.h
+++ b/pkt-line.h
@@ -1,6 +1,8 @@
 #ifndef PKTLINE_H
 #define PKTLINE_H
 
+#include "git-compat-util.h"
+
 /*
  * Silly packetized line writing interface
  */
-- 
1.4.0.g64e8
Previous: Dennis StosbergNext: Dennis Stosberg
Message 6 of 19 in “Git.pm: Support for perl/ being built by a different compiler”
  1. Git.pm: Support for perl/ being built by a different compilerPetr Baudis, Jun 25, 2006
  2. Junio C HamanoJun 25, 2006
  3. Petr BaudisJun 25, 2006
  4. Dennis StosbergJun 26, 2006
  5. Solaris needs inclusion of signal.h for signal()Dennis Stosberg, Jun 26, 2006
  6. Fix pkt-line.h to compile with a non-GCC compilerDennis Stosberg, Jun 26, 2006
  7. "test" in Solaris' /bin/sh does not support -eDennis Stosberg, Jun 26, 2006
  8. Junio C HamanoJun 26, 2006
  9. Dennis StosbergJun 26, 2006
  10. Dennis StosbergJun 26, 2006
  11. Junio C HamanoJun 26, 2006
  12. Makefile fix for SolarisDennis Stosberg, Jun 26, 2006
  13. Add possibility to pass CFLAGS and LDFLAGS specific to the perl subdirDennis Stosberg, Jun 26, 2006
  14. Petr BaudisJul 1, 2006
  15. Dennis StosbergJun 26, 2006
  16. Dennis StosbergJun 26, 2006
  17. Thomas GlanzmannJun 26, 2006
  18. Junio C HamanoJun 26, 2006
  19. Dennis StosbergJun 26, 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.