0002-Fix-the-pthread-missing-definition-build-error-on-some-systems.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. From 2e7aaf0c373a0e3a271f4b374bd98de8a80aefb0 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Jean-Fran=C3=A7ois=20DEL=20NERO?=
  3. <jeanfrancoisdelnero@free.fr>
  4. Date: Sat, 16 May 2020 09:20:01 +0200
  5. Subject: [PATCH] Fix the pthread missing definition build error on some
  6. systems.
  7. [Retrieved from:
  8. https://github.com/viveris/uMTP-Responder/commit/2e7aaf0c373a0e3a271f4b374bd98de8a80aefb0]
  9. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  10. ---
  11. src/fs_handles_db.c | 1 +
  12. src/mtp_cfg.c | 1 +
  13. src/mtp_datasets.c | 1 +
  14. src/mtp_operations/mtp_op_sendobject.c | 1 +
  15. src/mtp_properties.c | 1 +
  16. 5 files changed, 5 insertions(+)
  17. diff --git a/src/fs_handles_db.c b/src/fs_handles_db.c
  18. index a91268a..178bd90 100644
  19. --- a/src/fs_handles_db.c
  20. +++ b/src/fs_handles_db.c
  21. @@ -26,6 +26,7 @@
  22. #include "buildconf.h"
  23. #include <inttypes.h>
  24. +#include <pthread.h>
  25. #include <unistd.h>
  26. #include <fcntl.h>
  27. #include <string.h>
  28. diff --git a/src/mtp_cfg.c b/src/mtp_cfg.c
  29. index 30f473a..1f2302d 100644
  30. --- a/src/mtp_cfg.c
  31. +++ b/src/mtp_cfg.c
  32. @@ -26,6 +26,7 @@
  33. #include "buildconf.h"
  34. #include <inttypes.h>
  35. +#include <pthread.h>
  36. #include <stdlib.h>
  37. #include <stdio.h>
  38. #include <string.h>
  39. diff --git a/src/mtp_datasets.c b/src/mtp_datasets.c
  40. index 95cec68..fbd67e2 100644
  41. --- a/src/mtp_datasets.c
  42. +++ b/src/mtp_datasets.c
  43. @@ -26,6 +26,7 @@
  44. #include "buildconf.h"
  45. #include <inttypes.h>
  46. +#include <pthread.h>
  47. #include <sys/types.h>
  48. #include <sys/stat.h>
  49. #include <sys/statvfs.h>
  50. diff --git a/src/mtp_operations/mtp_op_sendobject.c b/src/mtp_operations/mtp_op_sendobject.c
  51. index 8af2c6b..8e1498c 100644
  52. --- a/src/mtp_operations/mtp_op_sendobject.c
  53. +++ b/src/mtp_operations/mtp_op_sendobject.c
  54. @@ -26,6 +26,7 @@
  55. #include "buildconf.h"
  56. #include <inttypes.h>
  57. +#include <pthread.h>
  58. #include <unistd.h>
  59. #include <fcntl.h>
  60. #include <pthread.h>
  61. diff --git a/src/mtp_properties.c b/src/mtp_properties.c
  62. index 4500cd4..5cf6e2d 100644
  63. --- a/src/mtp_properties.c
  64. +++ b/src/mtp_properties.c
  65. @@ -26,6 +26,7 @@
  66. #include "buildconf.h"
  67. #include <inttypes.h>
  68. +#include <pthread.h>
  69. #include <string.h>
  70. #include <stdio.h>
  71. #include <sys/types.h>