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

[PATCH] Fixed compilation with Visual Studio by including poll.h

From
SSSven Strickroth <sven.strickroth@tu-clausthal.de>
Date
Apr 20, 2012, 20:37 UTC
Message-ID
<4F91C8FF.7070402@tu-clausthal.de>

upload-archive.c and upload-pack.c use pollfd struct and POLLIN constant which are defined in poll.h. However, poll.h is not included.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
---
 builtin/upload-archive.c |    1 +
 upload-pack.c            |    1 +
 2 files changed, 2 insertions(+)
diff --git a/builtin/upload-archive.c b/builtin/upload-archive.c
index b928beb..6226bbb 100644
--- a/builtin/upload-archive.c
+++ b/builtin/upload-archive.c
@@ -1,6 +1,7 @@
 /*
  * Copyright (c) 2006 Franck Bui-Huu
  */
+#include "poll.h"
 #include "cache.h"
 #include "builtin.h"
 #include "archive.h"
diff --git a/upload-pack.c b/upload-pack.c
index bb08e2e..79f9f8f 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -1,3 +1,4 @@
+#include "poll.h"
 #include "cache.h"
 #include "refs.h"
 #include "pkt-line.h"
-- 
Best regards,
 Sven Strickroth
 ClamAV, a GPL anti-virus toolkit   http://www.clamav.net
 PGP key id F5A9D4C4 @ any key-server
Next: Jeff King
Message 1 of 6 in “Fixed compilation with Visual Studio by including poll.h”
  1. Fixed compilation with Visual Studio by including poll.hSven Strickroth, Apr 20, 2012
  2. Jeff KingApr 20, 2012
  3. Sven StrickrothApr 20, 2012
  4. Erik Faye-LundApr 20, 2012
  5. Junio C HamanoApr 20, 2012
  6. Jeff KingApr 20, 2012

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.