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)
9 +include(CheckFunctionExists)
10 +check_function_exists(eaccess HAVE_EACCESS)
13 install(TARGETS netopeer2-cli DESTINATION ${BIN_INSTALL_DIR})
15 Index: netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459/cli/commands.c
16 ===================================================================
17 --- netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459.orig/cli/commands.c
18 +++ netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459/cli/commands.c
20 # include <openssl/x509v3.h>
24 +#define eaccess access
28 #include "configuration.h"
29 #include "completion.h"
30 Index: netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459/cli/completion.c
31 ===================================================================
32 --- netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459.orig/cli/completion.c
33 +++ netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459/cli/completion.c
36 #include <nc_client.h>
39 +#define eaccess access
43 #include "linenoise/linenoise.h"
45 Index: netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459/cli/configuration.c
46 ===================================================================
47 --- netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459.orig/cli/configuration.c
48 +++ netopeer2-0.4.0-d028c1f931819db4b3e3cb1fd2d349a4fd5c0459/cli/configuration.c
50 #include <libyang/libyang.h>
51 #include <nc_client.h>
54 +#define eaccess access
57 #include "configuration.h"
59 #include "linenoise/linenoise.h"