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

[PATCH 3/3] Compile fix for MSVC: Use NO_INET_PTON and NO_INET_NTOP

From
Vincent van Ravesteijn <vfr@lyx.org>
Date
Nov 18, 2011, 16:44 UTC
Message-ID
<1321634670-4968-3-git-send-email-vfr@lyx.org>
In-Reply-To
<1321634670-4968-1-git-send-email-vfr@lyx.org>
This is needed to compile daemon.c.

In v1.7.3.2-162-ga666b47 (Nov 4 2010; Erik Faye-Lund <kusmabite@gmail.com>; daemon: opt-out on features that require posix) this was introduced for MingW, but this is also necessary for MSVC.

Signed-off-by: Vincent van Ravesteijn <vfr@lyx.org>
---
 Makefile |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index ee34eab..b9d53aa 100644
--- a/Makefile
+++ b/Makefile
@@ -1120,6 +1120,8 @@ ifeq ($(uname_S),Windows)
 	BLK_SHA1 = YesPlease
 	NO_POSIX_GOODIES = UnfortunatelyYes
 	NATIVE_CRLF = YesPlease
+	NO_INET_PTON = YesPlease
+	NO_INET_NTOP = YesPlease
 
 	CC = compat/vcbuild/scripts/clink.pl
 	AR = compat/vcbuild/scripts/lib.pl
-- 
1.7.4.1
Previous: Vincent van Ravesteijn
Message 5 of 5 in “MSVC: Remove vcbuild/include/sys/poll.h”
  1. 1/3 MSVC: Remove vcbuild/include/sys/poll.hVincent van Ravesteijn, Nov 18, 2011
  2. 2/3 Compile fix for MSVC: fix poll-related macro redefinesVincent van Ravesteijn, Nov 18, 2011
  3. Sebastian SchuberthNov 18, 2011
  4. Vincent van RavesteijnNov 22, 2011
  5. 3/3 Compile fix for MSVC: Use NO_INET_PTON and NO_INET_NTOPVincent van Ravesteijn, Nov 18, 2011

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.