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.

59 lines
2.0 KiB

  1. Index: netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459/cli/CMakeLists.txt
  2. ===================================================================
  3. --- netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459.orig/cli/CMakeLists.txt
  4. +++ netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459/cli/CMakeLists.txt
  5. @@ -67,6 +67,9 @@ if(NOT MAN_INSTALL_DIR)
  6. set(MAN_INSTALL_DIR share/man)
  7. endif()
  8. +include(CheckFunctionExists)
  9. +check_function_exists(eaccess HAVE_EACCESS)
  10. +
  11. # install binary
  12. install(TARGETS netopeer2-cli DESTINATION ${BIN_INSTALL_DIR})
  13. Index: netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459/cli/commands.c
  14. ===================================================================
  15. --- netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459.orig/cli/commands.c
  16. +++ netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459/cli/commands.c
  17. @@ -37,6 +37,10 @@
  18. # include <openssl/x509v3.h>
  19. #endif
  20. +#ifndef HAVE_EACCESS
  21. +#define eaccess access
  22. +#endif
  23. +
  24. #include "commands.h"
  25. #include "configuration.h"
  26. #include "completion.h"
  27. Index: netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459/cli/completion.c
  28. ===================================================================
  29. --- netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459.orig/cli/completion.c
  30. +++ netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459/cli/completion.c
  31. @@ -27,6 +27,10 @@
  32. #include <nc_client.h>
  33. +#ifndef HAVE_EACCESS
  34. +#define eaccess access
  35. +#endif
  36. +
  37. #include "commands.h"
  38. #include "linenoise/linenoise.h"
  39. Index: netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459/cli/configuration.c
  40. ===================================================================
  41. --- netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459.orig/cli/configuration.c
  42. +++ netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459/cli/configuration.c
  43. @@ -28,6 +28,10 @@
  44. #include <libyang/libyang.h>
  45. #include <nc_client.h>
  46. +#ifndef HAVE_EACCESS
  47. +#define eaccess access
  48. +#endif
  49. +
  50. #include "configuration.h"
  51. #include "commands.h"
  52. #include "linenoise/linenoise.h"