changeset 7136:f076b7e562b0

of-communications: Add patch for missing include of <cassert>. * src/of-communications-1-cassert.patch: Add new file. * dist-files.mk: Add new file to list.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 28 Mar 2024 19:46:19 +0100
parents 51670dbb688f
children d98156e821e1
files dist-files.mk src/of-communications-1-cassert.patch
diffstat 2 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dist-files.mk	Thu Mar 28 19:36:12 2024 +0100
+++ b/dist-files.mk	Thu Mar 28 19:46:19 2024 +0100
@@ -461,6 +461,7 @@
   ocaml-native.mk \
   of-actuarial.mk \
   of-audio.mk \
+  of-communications-1-cassert.patch \
   of-communications.mk \
   of-control-1-deprecated-warnings.patch \
   of-control-2-octave-9-compat.patch \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/of-communications-1-cassert.patch	Thu Mar 28 19:46:19 2024 +0100
@@ -0,0 +1,23 @@
+# HG changeset patch
+# User Markus M├╝tzel <markus.muetzel@gmx.de>
+# Date 1711651421 -3600
+#      Thu Mar 28 19:43:41 2024 +0100
+# Node ID e76d21c920d667d1a6b2b79a32dde0a95298ad65
+# Parent  5244e636c575c927d926ee69e7d44034ac9b397f
+Include <cassert> in file that uses "assert".
+
+* src/ov-galois.cc: The header <cassert> happened to be include via some
+headers from Octave before. That is no longer the case for Octave 10. Include
+the header directly in a file that requires it.
+
+diff -r 5244e636c575 -r e76d21c920d6 src/ov-galois.cc
+--- a/src/ov-galois.cc	Mon May 22 13:13:26 2023 -0400
++++ b/src/ov-galois.cc	Thu Mar 28 19:43:41 2024 +0100
+@@ -22,6 +22,7 @@
+ #include "config.h"
+ #endif
+ 
++#include <cassert>
+ #include <iostream>
+ 
+ #include <octave/oct.h>