0001-DriverManager-drivermanager.h-fix-build-without-thre.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 119cab666646cd9210439d4696a4bfa18343a2c6 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Tue, 12 Jul 2022 00:29:28 +0200
  4. Subject: [PATCH] DriverManager/drivermanager.h: fix build without threads
  5. Fix the following build failure without threads raised since version
  6. 2.3.10 and commit 6df155fb213896b9507b421c58856e4376647ae1:
  7. /home/buildroot/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: ../DriverManager/.libs/libodbc.so: undefined reference to `pool_timedwait'
  8. /home/buildroot/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: ../DriverManager/.libs/libodbc.so: undefined reference to `pool_signal'
  9. Fixes:
  10. - http://autobuild.buildroot.org/results/131eafaddfc956c7d54c81ed72a31baf28ab1ab6
  11. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  12. [Retrieved from:
  13. https://github.com/lurcher/unixODBC/commit/119cab666646cd9210439d4696a4bfa18343a2c6]
  14. ---
  15. DriverManager/drivermanager.h | 2 ++
  16. 1 file changed, 2 insertions(+)
  17. diff --git a/DriverManager/drivermanager.h b/DriverManager/drivermanager.h
  18. index 9528fae..abd324b 100644
  19. --- a/DriverManager/drivermanager.h
  20. +++ b/DriverManager/drivermanager.h
  21. @@ -808,6 +808,8 @@ void pool_signal();
  22. #define thread_protect(a,b)
  23. #define thread_release(a,b)
  24. +#define pool_timedwait(a)
  25. +#define pool_signal()
  26. #endif