File: add-required-c-header.patch

package info (click to toggle)
swig 4.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 46,244 kB
  • sloc: cpp: 54,631; ansic: 29,123; java: 17,530; python: 12,505; cs: 10,369; ruby: 7,232; yacc: 6,477; makefile: 5,965; javascript: 5,520; sh: 5,415; perl: 4,187; php: 3,693; ml: 2,187; lisp: 2,056; tcl: 1,991; xml: 115
file content (21 lines) | stat: -rw-r--r-- 693 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Include the required C header assert.h
 Otherwise, my SWIG-generated files won't compile with Octave 10.
Author: Andrea L <andrea.latina@cern.ch>
Origin: upstream https://github.com/swig/swig/commit/4bec608663c6035bce3867cfeb064bf779c769d7
Bug-Debian: https://bugs.debian.org/1114586
Forwarded: not-needed
Reviewed-By: Rafael Laboissière <rafael@debian.org>
Last-Update: 2025-09-17

--- swig-4.3.0.orig/Lib/octave/octheaders.hpp
+++ swig-4.3.0/Lib/octave/octheaders.hpp
@@ -12,6 +12,9 @@
 #if !defined(SWIG_OCTAVE_OCTHEADERS_HPP)
 #define SWIG_OCTAVE_OCTHEADERS_HPP
 
+// Required C header
+#include <assert.h>
+ 
 // Required C++ headers
 #include <cstdlib>
 #include <climits>