mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add android-libutils.
* gnu/packages/patches/libutils-add-includes.patch: New file. * gnu/packages/patches/libutils-remove-damaging-includes.patch: New file. * gnu/packages/android.scm (android-platform-system-core): Use them. (android-libutils): New variable. * gnu/local.mk: Add them.
This commit is contained in:
parent
055e6fb3eb
commit
be906ad16e
4 changed files with 63 additions and 0 deletions
21
gnu/packages/patches/libutils-remove-damaging-includes.patch
Normal file
21
gnu/packages/patches/libutils-remove-damaging-includes.patch
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- a/include/utils/StrongPointer.h 2018-04-25 18:42:34.321003602 +0200
|
||||
+++ b/include/utils/StrongPointer.h 2018-04-25 18:42:42.180912201 +0200
|
||||
@@ -17,8 +17,6 @@
|
||||
#ifndef ANDROID_STRONG_POINTER_H
|
||||
#define ANDROID_STRONG_POINTER_H
|
||||
|
||||
-#include <cutils/atomic.h>
|
||||
-
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdlib.h>
|
||||
--- a/libutils/Trace.cpp 2018-04-25 20:41:48.775049786 +0200
|
||||
+++ b/libutils/Trace.cpp 2018-04-25 20:42:13.674744182 +0200
|
||||
@@ -21,5 +21,7 @@
|
||||
|
||||
static void traceInit()
|
||||
{
|
||||
+#if defined(__ANDROID__)
|
||||
::android::add_sysprop_change_callback(atrace_update_tags, 0);
|
||||
+#endif
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue