Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
# Binaries shipping with liblxc
init_lxc_SOURCES = cmd/lxc_init.c \
compiler.h \
- error.h \
+ error.c error.h \
initutils.c initutils.h \
memory_utils.h \
parse.c parse.h \
* 128+n signal n received by the application
* 255 lxc error
*/
-extern int lxc_error_set_and_log(int pid, int status)
+int lxc_error_set_and_log(int pid, int status)
{
int ret = 0;
#define LXC_CLONE_ERROR "Failed to clone a new set of namespaces"
#define LXC_UNPRIV_EOPNOTSUPP "the requested function %s is not currently supported with unprivileged containers"
-extern int lxc_error_set_and_log(int pid, int status);
+#include "compiler.h"
+
+__hidden extern int lxc_error_set_and_log(int pid, int status);
#endif