aboutsummaryrefslogtreecommitdiffstats
path: root/community/ofono/fix-explicit-bzero.patch
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-11-07 12:12:02 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-11-12 05:42:36 -0300
commitf69e5c19191bd098bded41798f6c2834930be85e (patch)
tree07a1690ba0c58436d73ddfa452322aaf4665123c /community/ofono/fix-explicit-bzero.patch
parent321c84716168d43fb2fa046c3d691737a335bbb6 (diff)
downloadaports-f69e5c19191bd098bded41798f6c2834930be85e.tar.bz2
aports-f69e5c19191bd098bded41798f6c2834930be85e.tar.xz
community/ofono: move from testing
Diffstat (limited to 'community/ofono/fix-explicit-bzero.patch')
-rw-r--r--community/ofono/fix-explicit-bzero.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/community/ofono/fix-explicit-bzero.patch b/community/ofono/fix-explicit-bzero.patch
new file mode 100644
index 0000000000..855fa6ba76
--- /dev/null
+++ b/community/ofono/fix-explicit-bzero.patch
@@ -0,0 +1,16 @@
+diff --git a/ell/missing.h b/ell/missing.h
+index 37d5586..649a5ac 100644
+--- a/ell/missing.h
++++ b/ell/missing.h
+@@ -54,11 +54,3 @@
+ # define __NR_getrandom 0xffffffff
+ # endif
+ #endif
+-
+-#ifndef HAVE_EXPLICIT_BZERO
+-static inline void explicit_bzero(void *s, size_t n)
+-{
+- memset(s, 0, n);
+- __asm__ __volatile__ ("" : : "r"(s) : "memory");
+-}
+-#endif