xoscope: fix build for gcc14

This commit is contained in:
fumnanya
2025-01-01 07:10:46 +01:00
parent 85d9011d8a
commit 1c4557ce2d
2 changed files with 17 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
--- a/configure
+++ b/configure
@@ -7054,9 +7054,10 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
+#include <stddef.h>
#include <comedilib.h>
-main() {
- comedi_get_cmd_generic_timed(NULL, NULL, NULL, 0, 0);
+void main() {
+ comedi_get_cmd_generic_timed(NULL, 0, NULL, 0, 0);
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
+2
View File
@@ -20,6 +20,8 @@ stdenv.mkDerivation rec {
sha256 = "0a5ycfc1qdmibvagc82r2mhv2i99m6pndy5i6ixas3j2297g6pgq";
};
patches = [ ./fix-gcc14.patch ];
nativeBuildInputs = [
pkg-config
gnum4