libndp: fix cross compilation to musl

Assume that malloc works properly if cross compiling.
This commit is contained in:
Alyssa Ross 2024-05-08 10:54:33 +02:00
parent 3645b258dd
commit 2b3d191a28
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook ];
configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"ac_cv_func_malloc_0_nonnull=yes"
];
meta = with lib; {
homepage = "http://libndp.org/";
description = "Library for Neighbor Discovery Protocol";