ntopng: Add patch needed to build with newer libpcap
Fixes build errors for the third-party mongoose module:
```
In file included from
/nix/store/r5s3w32ahjzdlzsfrhybc3l2qcpi6yb2-libpcap-1.9.0/include/pcap.h:43,
from /build/ntopng-2.0/include/ntop_includes.h:93,
from src/HTTPserver.cpp:22:
/nix/store/r5s3w32ahjzdlzsfrhybc3l2qcpi6yb2-libpcap-1.9.0/include/pcap/pcap.h:958: note: this is the location of the previous definition
#define INVALID_SOCKET -1
src/../third-party/mongoose/mongoose.c:270:13: error: multiple types in one declaration
typedef int SOCKET;
^~~~~~
```
This commit is contained in:
@@ -20,6 +20,7 @@ stdenv.mkDerivation rec {
|
||||
patches = [
|
||||
./0001-Undo-weird-modification-of-data_dir.patch
|
||||
./0002-Remove-requirement-to-have-writeable-callback-dir.patch
|
||||
./0003-New-libpcap-defines-SOCKET.patch
|
||||
];
|
||||
|
||||
buildInputs = [ libpcap/* gnutls libgcrypt*/ libxml2 glib geoip geolite-legacy
|
||||
|
||||
Reference in New Issue
Block a user