3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #211279 from alyssais/miniupnpc-freebsd

miniupnpc: drop obsolete FreeBSD patch
This commit is contained in:
Nick Cao 2023-01-18 09:02:45 +08:00 committed by GitHub
commit f5cec01041
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 13 deletions

View file

@ -15,8 +15,6 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
patches = lib.optional stdenv.isFreeBSD ./freebsd.patch;
doCheck = !stdenv.isFreeBSD;
makeFlags = [ "PREFIX=$(out)" ];

View file

@ -1,11 +0,0 @@
diff --git a/minihttptestserver.c b/minihttptestserver.c
index bbfdac3..a43999d 100644
--- a/minihttptestserver.c
+++ b/minihttptestserver.c
@@ -1,3 +1,6 @@
+#ifndef INADDR_LOOPBACK
+#define INADDR_LOOPBACK 0x7f000001
+#endif
/* $Id: minihttptestserver.c,v 1.17 2015/02/06 10:31:19 nanard Exp $ */
/* Project : miniUPnP
* Author : Thomas Bernard