motif: fix build with GCC 15

Getting this package to support C23 would be nontrivial; see
https://gitlab.alpinelinux.org/alpine/aports/-/commit/c884c1f3642e96d7de6d905b828170db5bdd2c56

We also need to enable GNU extensions for `caddr_t`.
This commit is contained in:
Ryan Burns
2025-12-17 18:29:36 -08:00
parent 928cae6326
commit 0c90beea4c
+7 -4
View File
@@ -122,12 +122,15 @@ stdenv.mkDerivation rec {
"ac_cv_func_setpgrp_void=${lib.boolToYesNo (!stdenv.hostPlatform.isBSD)}"
];
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = toString [
env.NIX_CFLAGS_COMPILE = toString (
[
"-std=gnu17"
]
++ lib.optionals stdenv.cc.isClang [
"-Wno-error=implicit-function-declaration"
"-Wno-error=incompatible-function-pointer-types"
];
};
]
);
enableParallelBuilding = true;