mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
driftnet: fix
The "unused" sentinel value was removed in libwebsockets 4.3.0; we can no longer pass it in structure initialization.
This commit is contained in:
parent
f929353095
commit
d98c11f92f
2 changed files with 14 additions and 0 deletions
|
@ -35,6 +35,8 @@ stdenv.mkDerivation rec {
|
|||
url = "https://github.com/deiv/driftnet/pull/33/commits/bef5f3509ab5710161e9e21ea960a997eada534f.patch";
|
||||
sha256 = "1b7p9fkgp7dxv965l7q7y632s80h3nnrkaqnak2h0hakwv0i4pvm";
|
||||
})
|
||||
# https://github.com/deiv/driftnet/issues/37
|
||||
./libwebsockets-4.3.0.patch
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
|
12
pkgs/tools/networking/driftnet/libwebsockets-4.3.0.patch
Normal file
12
pkgs/tools/networking/driftnet/libwebsockets-4.3.0.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff --git a/src/http_display/httpd.c b/src/http_display/httpd.c
|
||||
index f4709ef..7921d23 100644
|
||||
--- a/src/http_display/httpd.c
|
||||
+++ b/src/http_display/httpd.c
|
||||
@@ -191,7 +191,6 @@ static void * http_server_dispatch(void *arg)
|
||||
LWSMPRO_FILE, /* mount type is a directory in a filesystem */
|
||||
1, /* strlen("/"), ie length of the mountpoint */
|
||||
NULL,
|
||||
- { NULL, NULL } // sentinel
|
||||
};
|
||||
|
||||
memset(&info, 0, sizeof info);
|
Loading…
Reference in a new issue