You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.1 KiB

  1. From 89b289cde29c731f995642a341dc5fd3b47ec7a0 Mon Sep 17 00:00:00 2001
  2. From: Jean-Francois Dockes <jf@dockes.org>
  3. Date: Mon, 4 May 2020 16:32:23 +0200
  4. Subject: [PATCH] The access() system call needs unistd.h, at least on Focal
  5. ---
  6. src/file_request_handler.cc | 2 +-
  7. src/iohandler/io_handler_chainer.cc | 2 +-
  8. src/serve_request_handler.cc | 2 +-
  9. src/util/upnp_quirks.cc | 2 +-
  10. 4 files changed, 4 insertions(+), 4 deletions(-)
  11. diff --git a/src/file_request_handler.cc b/src/file_request_handler.cc
  12. index e8579b06..cfa3eaed 100644
  13. --- a/src/file_request_handler.cc
  14. +++ b/src/file_request_handler.cc
  15. @@ -30,9 +30,9 @@
  16. /// \file file_request_handler.cc
  17. #include "file_request_handler.h" // API
  18. -
  19. #include <filesystem>
  20. #include <sys/stat.h>
  21. +#include <unistd.h>
  22. #include <utility>
  23. #include "config/config_manager.h"
  24. diff --git a/src/iohandler/io_handler_chainer.cc b/src/iohandler/io_handler_chainer.cc
  25. index e8701cd7..beaa9d03 100644
  26. --- a/src/iohandler/io_handler_chainer.cc
  27. +++ b/src/iohandler/io_handler_chainer.cc
  28. @@ -30,8 +30,8 @@
  29. /// \file io_handler_chainer.cc
  30. #include "io_handler_chainer.h" // API
  31. -
  32. #include <cstdlib>
  33. +#include <unistd.h>
  34. #include "exceptions.h"
  35. diff --git a/src/serve_request_handler.cc b/src/serve_request_handler.cc
  36. index 8eaf46af..210140a3 100644
  37. --- a/src/serve_request_handler.cc
  38. +++ b/src/serve_request_handler.cc
  39. @@ -30,8 +30,8 @@
  40. /// \file serve_request_handler.cc
  41. #include "serve_request_handler.h"
  42. -
  43. #include <sys/stat.h>
  44. +#include <unistd.h>
  45. #include <utility>
  46. #include "config/config_manager.h"
  47. diff --git a/src/util/upnp_quirks.cc b/src/util/upnp_quirks.cc
  48. index df137370..e6f510b4 100644
  49. --- a/src/util/upnp_quirks.cc
  50. +++ b/src/util/upnp_quirks.cc
  51. @@ -24,13 +24,13 @@
  52. /// \file upnp_quirks.cc
  53. #include "upnp_quirks.h" // API
  54. -
  55. #include "cds_objects.h"
  56. #include "config/config_manager.h"
  57. #include "server.h"
  58. #include "util/tools.h"
  59. #include "util/upnp_clients.h"
  60. #include "util/upnp_headers.h"
  61. +#include <unistd.h>
  62. Quirks::Quirks(std::shared_ptr<Config> config, const struct sockaddr_storage* addr, const std::string& userAgent)
  63. : config(std::move(config))