summaryrefslogtreecommitdiffstats
path: root/debian/patches/assert.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-11 08:21:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-11 08:21:30 +0000
commit5fbf8d8592ffd00fcd6f237ab31886936755c882 (patch)
treec02b1d7cb63f2794cb6e24b6ba611badb624d8ac /debian/patches/assert.patch
parentAdding upstream version 1:0.1.9998svn3589+dfsg. (diff)
downloadkbuild-5fbf8d8592ffd00fcd6f237ab31886936755c882.tar.xz
kbuild-5fbf8d8592ffd00fcd6f237ab31886936755c882.zip
Adding debian version 1:0.1.9998svn3589+dfsg-1.debian/1%0.1.9998svn3589+dfsg-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/assert.patch')
-rw-r--r--debian/patches/assert.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/assert.patch b/debian/patches/assert.patch
new file mode 100644
index 0000000..9376b6d
--- /dev/null
+++ b/debian/patches/assert.patch
@@ -0,0 +1,18 @@
+Description: Use assert ehen kHlpAssertBreakpoint is not available
+Author: Gianfranco Costamagna <locutusofborg@debian.org>
+Last-Update: 2020-11-10
+
+Index: kbuild/src/lib/kStuff/include/k/kHlpAssert.h
+===================================================================
+--- kbuild.orig/src/lib/kStuff/include/k/kHlpAssert.h
++++ kbuild/src/lib/kStuff/include/k/kHlpAssert.h
+@@ -60,7 +60,8 @@
+ #elif defined(__GNUC__) && (K_ARCH == K_ARCH_SPARC_64)
+ # define kHlpAssertBreakpoint() do { __asm__ __volatile__ ("illtrap 0"); } while (0) /*??*/
+ #else
+-# error "Port Me"
++#include <assert.h>
++# define kHlpAssertBreakpoint(cond) assert(cond)
+ #endif
+
+ /** @def K_FUNCTION