0007-remoting-fix-missing-cstring-header.patch 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. From 583d891f4642244c5249065bdde985aa9940d4f0 Mon Sep 17 00:00:00 2001
  2. From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  3. Date: Thu, 13 Jan 2022 09:44:47 +0000
  4. Subject: [PATCH 07/22] remoting: fix missing cstring header
  5. Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  6. ---
  7. remoting/base/util.cc | 2 +-
  8. remoting/client/display/gl_helpers.cc | 2 +-
  9. remoting/host/fake_mouse_cursor_monitor.cc | 2 +-
  10. remoting/host/host_config_unittest.cc | 1 +
  11. remoting/host/host_secret.cc | 2 +-
  12. 5 files changed, 5 insertions(+), 4 deletions(-)
  13. diff --git a/remoting/base/util.cc b/remoting/base/util.cc
  14. index 20eedfb3a34cb..4c1fdcc75ca7d 100644
  15. --- a/remoting/base/util.cc
  16. +++ b/remoting/base/util.cc
  17. @@ -3,7 +3,7 @@
  18. // found in the LICENSE file.
  19. #include "remoting/base/util.h"
  20. -
  21. +#include <cstring>
  22. #include <math.h>
  23. #include "base/logging.h"
  24. diff --git a/remoting/client/display/gl_helpers.cc b/remoting/client/display/gl_helpers.cc
  25. index bce438b7625e3..5215980462f8a 100644
  26. --- a/remoting/client/display/gl_helpers.cc
  27. +++ b/remoting/client/display/gl_helpers.cc
  28. @@ -5,7 +5,7 @@
  29. #include "remoting/client/display/gl_helpers.h"
  30. #include "base/logging.h"
  31. -
  32. +#include <cstring>
  33. namespace remoting {
  34. GLuint CompileShader(GLenum shader_type, const char* shader_source) {
  35. diff --git a/remoting/host/fake_mouse_cursor_monitor.cc b/remoting/host/fake_mouse_cursor_monitor.cc
  36. index 0f8b6c72fd422..a7c499b85d055 100644
  37. --- a/remoting/host/fake_mouse_cursor_monitor.cc
  38. +++ b/remoting/host/fake_mouse_cursor_monitor.cc
  39. @@ -3,7 +3,7 @@
  40. // found in the LICENSE file.
  41. #include "remoting/host/fake_mouse_cursor_monitor.h"
  42. -
  43. +#include <cstring>
  44. #include <memory>
  45. #include "base/check.h"
  46. diff --git a/remoting/host/host_config_unittest.cc b/remoting/host/host_config_unittest.cc
  47. index 31a9bcb7ae779..9c7c176721d76 100644
  48. --- a/remoting/host/host_config_unittest.cc
  49. +++ b/remoting/host/host_config_unittest.cc
  50. @@ -10,6 +10,7 @@
  51. #include "base/values.h"
  52. #include "testing/gtest/include/gtest/gtest.h"
  53. #include "third_party/abseil-cpp/absl/types/optional.h"
  54. +#include <cstring>
  55. namespace remoting {
  56. diff --git a/remoting/host/host_secret.cc b/remoting/host/host_secret.cc
  57. index c70c9c211c061..dc2f697b5ae26 100644
  58. --- a/remoting/host/host_secret.cc
  59. +++ b/remoting/host/host_secret.cc
  60. @@ -6,7 +6,7 @@
  61. #include <stdint.h>
  62. -#include <string>
  63. +#include <cstring>
  64. #include "base/rand_util.h"
  65. #include "base/strings/string_number_conversions.h"
  66. --
  67. 2.25.1