sysrepo: bump to latest version
[feed/packages.git] / net / netopeer2 / patches / 003-BUGFIX-for-missing-eaccess-in-uClibc
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
9 +include(CheckFunctionExists)
10 +check_function_exists(eaccess HAVE_EACCESS)
11 +
12 # install binary
13 install(TARGETS netopeer2-cli DESTINATION ${BIN_INSTALL_DIR})
14
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
19 @@ -37,6 +37,10 @@
20 # include <openssl/x509v3.h>
21 #endif
22
23 +#ifndef HAVE_EACCESS
24 +#define eaccess access
25 +#endif
26 +
27 #include "commands.h"
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
34 @@ -27,6 +27,10 @@
35
36 #include <nc_client.h>
37
38 +#ifndef HAVE_EACCESS
39 +#define eaccess access
40 +#endif
41 +
42 #include "commands.h"
43 #include "linenoise/linenoise.h"
44
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
49 @@ -28,6 +28,10 @@
50 #include <libyang/libyang.h>
51 #include <nc_client.h>
52
53 +#ifndef HAVE_EACCESS
54 +#define eaccess access
55 +#endif
56 +
57 #include "configuration.h"
58 #include "commands.h"
59 #include "linenoise/linenoise.h"