mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
package/libsigrok: update musl patch
Upstream chose a different fix: http://article.gmane.org/gmane.comp.debugging.sigrok.devel/1951 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
a7b9b632fd
commit
391448a79a
@ -1,38 +1,36 @@
|
|||||||
From 1b9ca481b2447154d12a7a94fe90c5b968ddf41c Mon Sep 17 00:00:00 2001
|
From 83bf4762e42a4d4a5c077f48d8f5715c9147d9b8 Mon Sep 17 00:00:00 2001
|
||||||
From: Bernd Kuhls <bernd.kuhls@t-online.de>
|
From: Aurelien Jacobs <aurel@gnuage.org>
|
||||||
Date: Sat, 30 Jan 2016 20:01:05 +0100
|
Date: Mon, 1 Feb 2016 22:37:36 +0100
|
||||||
Subject: [PATCH 1/1] beaglelogic.h: fix build with musl libc
|
Subject: [PATCH] beaglelogic: use standard # operator instead of ugly __STRING
|
||||||
|
macro
|
||||||
|
|
||||||
This patch fixes a build error seen on the buildroot project:
|
Also note that the __ namespace is reserved by POSIX for its private
|
||||||
http://autobuild.buildroot.net/results/afc/afcea2068d5b0ba707aa90339401550602103ca7/
|
usage, so user land software should never rely on any kind of API
|
||||||
|
with a __ prefix.
|
||||||
Patch taken from
|
|
||||||
https://github.com/dx9/ceph/commit/4f7bcabca7737c3f48f07ca2b4b1296c29e3358b
|
|
||||||
which solved a similar problem.
|
|
||||||
|
|
||||||
|
Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
|
||||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||||
---
|
---
|
||||||
Patch sent upstream:
|
Patch downloaded from upstream git:
|
||||||
http://article.gmane.org/gmane.comp.debugging.sigrok.devel/1948
|
http://sigrok.org/gitweb/?p=libsigrok.git;a=commit;h=83bf4762e42a4d4a5c077f48d8f5715c9147d9b8
|
||||||
|
|
||||||
src/hardware/beaglelogic/beaglelogic.h | 4 ++++
|
src/hardware/beaglelogic/beaglelogic.h | 3 +--
|
||||||
1 file changed, 4 insertions(+)
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/hardware/beaglelogic/beaglelogic.h b/src/hardware/beaglelogic/beaglelogic.h
|
diff --git a/src/hardware/beaglelogic/beaglelogic.h b/src/hardware/beaglelogic/beaglelogic.h
|
||||||
index 9015c61..165b386 100644
|
index 9015c61..96713ba 100644
|
||||||
--- a/src/hardware/beaglelogic/beaglelogic.h
|
--- a/src/hardware/beaglelogic/beaglelogic.h
|
||||||
+++ b/src/hardware/beaglelogic/beaglelogic.h
|
+++ b/src/hardware/beaglelogic/beaglelogic.h
|
||||||
@@ -28,6 +28,10 @@
|
@@ -30,8 +30,7 @@
|
||||||
#include <stdlib.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
+#ifndef __STRING
|
|
||||||
+# define __STRING(x) #x
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
/* BeagleLogic device node name */
|
/* BeagleLogic device node name */
|
||||||
#define BEAGLELOGIC_DEV_NODE "/dev/beaglelogic"
|
#define BEAGLELOGIC_DEV_NODE "/dev/beaglelogic"
|
||||||
#define BEAGLELOGIC_SYSFS_ATTR(a) "/sys/devices/virtual/misc/beaglelogic/"\
|
-#define BEAGLELOGIC_SYSFS_ATTR(a) "/sys/devices/virtual/misc/beaglelogic/"\
|
||||||
--
|
- __STRING(a)
|
||||||
2.7.0.rc3
|
+#define BEAGLELOGIC_SYSFS_ATTR(a) "/sys/devices/virtual/misc/beaglelogic/" #a
|
||||||
|
|
||||||
|
/* Reproduced verbatim from beaglelogic.h in the kernel tree until the kernel
|
||||||
|
* module hits the mainline. Contains the ABI, so DO NOT TOUCH this section */
|
||||||
|
--
|
||||||
|
2.6.2
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user