0001-beaglelogic.h-fix-build-with-musl-libc.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 1b9ca481b2447154d12a7a94fe90c5b968ddf41c Mon Sep 17 00:00:00 2001
  2. From: Bernd Kuhls <bernd.kuhls@t-online.de>
  3. Date: Sat, 30 Jan 2016 20:01:05 +0100
  4. Subject: [PATCH 1/1] beaglelogic.h: fix build with musl libc
  5. This patch fixes a build error seen on the buildroot project:
  6. http://autobuild.buildroot.net/results/afc/afcea2068d5b0ba707aa90339401550602103ca7/
  7. Patch taken from
  8. https://github.com/dx9/ceph/commit/4f7bcabca7737c3f48f07ca2b4b1296c29e3358b
  9. which solved a similar problem.
  10. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  11. ---
  12. Patch sent upstream:
  13. http://article.gmane.org/gmane.comp.debugging.sigrok.devel/1948
  14. src/hardware/beaglelogic/beaglelogic.h | 4 ++++
  15. 1 file changed, 4 insertions(+)
  16. diff --git a/src/hardware/beaglelogic/beaglelogic.h b/src/hardware/beaglelogic/beaglelogic.h
  17. index 9015c61..165b386 100644
  18. --- a/src/hardware/beaglelogic/beaglelogic.h
  19. +++ b/src/hardware/beaglelogic/beaglelogic.h
  20. @@ -28,6 +28,10 @@
  21. #include <stdlib.h>
  22. #include <unistd.h>
  23. +#ifndef __STRING
  24. +# define __STRING(x) #x
  25. +#endif
  26. +
  27. /* BeagleLogic device node name */
  28. #define BEAGLELOGIC_DEV_NODE "/dev/beaglelogic"
  29. #define BEAGLELOGIC_SYSFS_ATTR(a) "/sys/devices/virtual/misc/beaglelogic/"\
  30. --
  31. 2.7.0.rc3