Makefile: fix strchrnul() inclusion

parent 60933dae
...@@ -20,6 +20,7 @@ noinst_HEADERS = api_extensions.h \ ...@@ -20,6 +20,7 @@ noinst_HEADERS = api_extensions.h \
error.h \ error.h \
error_utils.h \ error_utils.h \
file_utils.h \ file_utils.h \
../include/strchrnul.h \
../include/netns_ifaddrs.h \ ../include/netns_ifaddrs.h \
initutils.h \ initutils.h \
list.h \ list.h \
...@@ -391,6 +392,10 @@ lxc_attach_SOURCES += af_unix.c af_unix.h \ ...@@ -391,6 +392,10 @@ lxc_attach_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_attach_SOURCES += seccomp.c lxcseccomp.h lxc_attach_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_attach_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_autostart_SOURCES = tools/lxc_autostart.c \ lxc_autostart_SOURCES = tools/lxc_autostart.c \
...@@ -448,6 +453,10 @@ lxc_autostart_SOURCES += af_unix.c af_unix.h \ ...@@ -448,6 +453,10 @@ lxc_autostart_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_autostart_SOURCES += seccomp.c lxcseccomp.h lxc_autostart_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_autostart_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_cgroup_SOURCES = tools/lxc_cgroup.c \ lxc_cgroup_SOURCES = tools/lxc_cgroup.c \
...@@ -505,6 +514,10 @@ lxc_cgroup_SOURCES += af_unix.c af_unix.h \ ...@@ -505,6 +514,10 @@ lxc_cgroup_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_cgroup_SOURCES += seccomp.c lxcseccomp.h lxc_cgroup_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_cgroup_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_config_SOURCES = tools/lxc_config.c \ lxc_config_SOURCES = tools/lxc_config.c \
...@@ -562,6 +575,10 @@ lxc_config_SOURCES += af_unix.c af_unix.h \ ...@@ -562,6 +575,10 @@ lxc_config_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_config_SOURCES += seccomp.c lxcseccomp.h lxc_config_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_config_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_console_SOURCES = tools/lxc_console.c \ lxc_console_SOURCES = tools/lxc_console.c \
...@@ -619,6 +636,10 @@ lxc_console_SOURCES += af_unix.c af_unix.h \ ...@@ -619,6 +636,10 @@ lxc_console_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_console_SOURCES += seccomp.c lxcseccomp.h lxc_console_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_console_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_destroy_SOURCES = tools/lxc_destroy.c \ lxc_destroy_SOURCES = tools/lxc_destroy.c \
...@@ -676,6 +697,10 @@ lxc_destroy_SOURCES += af_unix.c af_unix.h \ ...@@ -676,6 +697,10 @@ lxc_destroy_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_destroy_SOURCES += seccomp.c lxcseccomp.h lxc_destroy_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_destroy_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_device_SOURCES = tools/lxc_device.c \ lxc_device_SOURCES = tools/lxc_device.c \
...@@ -733,6 +758,10 @@ lxc_device_SOURCES += af_unix.c af_unix.h \ ...@@ -733,6 +758,10 @@ lxc_device_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_device_SOURCES += seccomp.c lxcseccomp.h lxc_device_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_device_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_execute_SOURCES = tools/lxc_execute.c \ lxc_execute_SOURCES = tools/lxc_execute.c \
...@@ -790,6 +819,10 @@ lxc_execute_SOURCES += af_unix.c af_unix.h \ ...@@ -790,6 +819,10 @@ lxc_execute_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_execute_SOURCES += seccomp.c lxcseccomp.h lxc_execute_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_execute_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_freeze_SOURCES = tools/lxc_freeze.c \ lxc_freeze_SOURCES = tools/lxc_freeze.c \
...@@ -847,6 +880,10 @@ lxc_freeze_SOURCES += af_unix.c af_unix.h \ ...@@ -847,6 +880,10 @@ lxc_freeze_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_freeze_SOURCES += seccomp.c lxcseccomp.h lxc_freeze_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_freeze_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_info_SOURCES = tools/lxc_info.c \ lxc_info_SOURCES = tools/lxc_info.c \
...@@ -904,6 +941,10 @@ lxc_info_SOURCES += af_unix.c af_unix.h \ ...@@ -904,6 +941,10 @@ lxc_info_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_info_SOURCES += seccomp.c lxcseccomp.h lxc_info_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_info_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_monitor_SOURCES = tools/lxc_monitor.c \ lxc_monitor_SOURCES = tools/lxc_monitor.c \
...@@ -962,6 +1003,10 @@ lxc_monitor_SOURCES += af_unix.c af_unix.h \ ...@@ -962,6 +1003,10 @@ lxc_monitor_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_monitor_SOURCES += seccomp.c lxcseccomp.h lxc_monitor_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_monitor_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_ls_SOURCES = tools/lxc_ls.c \ lxc_ls_SOURCES = tools/lxc_ls.c \
...@@ -1020,6 +1065,10 @@ lxc_ls_SOURCES += af_unix.c af_unix.h \ ...@@ -1020,6 +1065,10 @@ lxc_ls_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_ls_SOURCES += seccomp.c lxcseccomp.h lxc_ls_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_ls_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_copy_SOURCES = tools/lxc_copy.c \ lxc_copy_SOURCES = tools/lxc_copy.c \
...@@ -1077,6 +1126,10 @@ lxc_copy_SOURCES += af_unix.c af_unix.h \ ...@@ -1077,6 +1126,10 @@ lxc_copy_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_copy_SOURCES += seccomp.c lxcseccomp.h lxc_copy_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_copy_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_start_SOURCES = tools/lxc_start.c \ lxc_start_SOURCES = tools/lxc_start.c \
...@@ -1134,6 +1187,10 @@ lxc_start_SOURCES += af_unix.c af_unix.h \ ...@@ -1134,6 +1187,10 @@ lxc_start_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_start_SOURCES += seccomp.c lxcseccomp.h lxc_start_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_start_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_stop_SOURCES = tools/lxc_stop.c \ lxc_stop_SOURCES = tools/lxc_stop.c \
...@@ -1191,6 +1248,10 @@ lxc_stop_SOURCES += af_unix.c af_unix.h \ ...@@ -1191,6 +1248,10 @@ lxc_stop_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_stop_SOURCES += seccomp.c lxcseccomp.h lxc_stop_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_stop_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_top_SOURCES = tools/lxc_top.c \ lxc_top_SOURCES = tools/lxc_top.c \
...@@ -1248,6 +1309,10 @@ lxc_top_SOURCES += af_unix.c af_unix.h \ ...@@ -1248,6 +1309,10 @@ lxc_top_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_top_SOURCES += seccomp.c lxcseccomp.h lxc_top_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_top_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_unfreeze_SOURCES = tools/lxc_unfreeze.c \ lxc_unfreeze_SOURCES = tools/lxc_unfreeze.c \
...@@ -1305,6 +1370,10 @@ lxc_unfreeze_SOURCES += af_unix.c af_unix.h \ ...@@ -1305,6 +1370,10 @@ lxc_unfreeze_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_unfreeze_SOURCES += seccomp.c lxcseccomp.h lxc_unfreeze_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_unfreeze_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_unshare_SOURCES = tools/lxc_unshare.c \ lxc_unshare_SOURCES = tools/lxc_unshare.c \
...@@ -1364,6 +1433,10 @@ lxc_unshare_SOURCES += af_unix.c af_unix.h \ ...@@ -1364,6 +1433,10 @@ lxc_unshare_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_unshare_SOURCES += seccomp.c lxcseccomp.h lxc_unshare_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_unshare_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_wait_SOURCES = tools/lxc_wait.c \ lxc_wait_SOURCES = tools/lxc_wait.c \
...@@ -1421,6 +1494,10 @@ lxc_wait_SOURCES += af_unix.c af_unix.h \ ...@@ -1421,6 +1494,10 @@ lxc_wait_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_wait_SOURCES += seccomp.c lxcseccomp.h lxc_wait_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_wait_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_create_SOURCES = tools/lxc_create.c \ lxc_create_SOURCES = tools/lxc_create.c \
...@@ -1478,6 +1555,10 @@ lxc_create_SOURCES += af_unix.c af_unix.h \ ...@@ -1478,6 +1555,10 @@ lxc_create_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_create_SOURCES += seccomp.c lxcseccomp.h lxc_create_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_create_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_snapshot_SOURCES = tools/lxc_snapshot.c \ lxc_snapshot_SOURCES = tools/lxc_snapshot.c \
...@@ -1535,6 +1616,10 @@ lxc_snapshot_SOURCES += af_unix.c af_unix.h \ ...@@ -1535,6 +1616,10 @@ lxc_snapshot_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_snapshot_SOURCES += seccomp.c lxcseccomp.h lxc_snapshot_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_snapshot_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_checkpoint_SOURCES = tools/lxc_checkpoint.c \ lxc_checkpoint_SOURCES = tools/lxc_checkpoint.c \
...@@ -1592,6 +1677,11 @@ lxc_checkpoint_SOURCES += af_unix.c af_unix.h \ ...@@ -1592,6 +1677,11 @@ lxc_checkpoint_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_checkpoint_SOURCES += seccomp.c lxcseccomp.h lxc_checkpoint_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_checkpoint_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
endif endif
...@@ -1665,6 +1755,10 @@ lxc_monitord_SOURCES += af_unix.c af_unix.h \ ...@@ -1665,6 +1755,10 @@ lxc_monitord_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_monitord_SOURCES += seccomp.c lxcseccomp.h lxc_monitord_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_monitord_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_user_nic_SOURCES = cmd/lxc_user_nic.c lxc_user_nic_SOURCES = cmd/lxc_user_nic.c
...@@ -1724,6 +1818,10 @@ lxc_user_nic_SOURCES += af_unix.c af_unix.h \ ...@@ -1724,6 +1818,10 @@ lxc_user_nic_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_user_nic_SOURCES += seccomp.c lxcseccomp.h lxc_user_nic_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_user_nic_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c
...@@ -1784,6 +1882,10 @@ lxc_usernsexec_SOURCES += af_unix.c af_unix.h \ ...@@ -1784,6 +1882,10 @@ lxc_usernsexec_SOURCES += af_unix.c af_unix.h \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_usernsexec_SOURCES += seccomp.c lxcseccomp.h lxc_usernsexec_SOURCES += seccomp.c lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_usernsexec_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
endif endif
endif endif
......
...@@ -4,19 +4,11 @@ ...@@ -4,19 +4,11 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
char *strchrnul(const char *s, int c) #include "config.h"
{
char *result;
result = strchr( s, c );
if( !result ) #ifndef HAVE_STRCHRNUL
{ #include "include/strchrnul"
result = (char *)s + strlen( s ); #endif
}
return( result );
}
/* Parse comma separated suboption from *OPTIONP and match against /* Parse comma separated suboption from *OPTIONP and match against
strings in TOKENS. If found return index and set *VALUEP to strings in TOKENS. If found return index and set *VALUEP to
......
...@@ -69,6 +69,10 @@ if ENABLE_SECCOMP ...@@ -69,6 +69,10 @@ if ENABLE_SECCOMP
lxc_test_api_reboot_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_api_reboot_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_test_api_reboot_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
lxc_test_apparmor_SOURCES = aa.c \ lxc_test_apparmor_SOURCES = aa.c \
../lxc/af_unix.c ../lxc/af_unix.h \ ../lxc/af_unix.c ../lxc/af_unix.h \
../lxc/caps.c ../lxc/caps.h \ ../lxc/caps.c ../lxc/caps.h \
...@@ -119,6 +123,10 @@ if ENABLE_SECCOMP ...@@ -119,6 +123,10 @@ if ENABLE_SECCOMP
lxc_test_apparmor_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_apparmor_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_test_apparmor_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
lxc_test_attach_SOURCES = attach.c \ lxc_test_attach_SOURCES = attach.c \
../lxc/af_unix.c ../lxc/af_unix.h \ ../lxc/af_unix.c ../lxc/af_unix.h \
../lxc/caps.c ../lxc/caps.h \ ../lxc/caps.c ../lxc/caps.h \
...@@ -169,6 +177,10 @@ if ENABLE_SECCOMP ...@@ -169,6 +177,10 @@ if ENABLE_SECCOMP
lxc_test_attach_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_attach_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_test_attach_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
lxc_test_basic_SOURCES = basic.c lxc_test_basic_SOURCES = basic.c
lxc_test_cgpath_SOURCES = cgpath.c \ lxc_test_cgpath_SOURCES = cgpath.c \
../lxc/af_unix.c ../lxc/af_unix.h \ ../lxc/af_unix.c ../lxc/af_unix.h \
...@@ -220,6 +232,10 @@ if ENABLE_SECCOMP ...@@ -220,6 +232,10 @@ if ENABLE_SECCOMP
lxc_test_cgpath_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_cgpath_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_test_cgpath_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
lxc_test_clonetest_SOURCES = clonetest.c lxc_test_clonetest_SOURCES = clonetest.c
lxc_test_concurrent_SOURCES = concurrent.c lxc_test_concurrent_SOURCES = concurrent.c
lxc_test_config_jump_table_SOURCES = config_jump_table.c \ lxc_test_config_jump_table_SOURCES = config_jump_table.c \
...@@ -273,6 +289,10 @@ if ENABLE_SECCOMP ...@@ -273,6 +289,10 @@ if ENABLE_SECCOMP
lxc_test_config_jump_table_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_config_jump_table_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_test_config_jump_table_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
lxc_test_console_SOURCES = console.c lxc_test_console_SOURCES = console.c
lxc_test_console_log_SOURCES = console_log.c lxctest.h lxc_test_console_log_SOURCES = console_log.c lxctest.h
lxc_test_containertests_SOURCES = containertests.c lxc_test_containertests_SOURCES = containertests.c
...@@ -329,6 +349,11 @@ lxc_test_device_add_remove_SOURCES = device_add_remove.c \ ...@@ -329,6 +349,11 @@ lxc_test_device_add_remove_SOURCES = device_add_remove.c \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_test_device_add_remove_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_device_add_remove_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_test_device_add_remove_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
lxc_test_getkeys_SOURCES = getkeys.c lxc_test_getkeys_SOURCES = getkeys.c
lxc_test_get_item_SOURCES = get_item.c \ lxc_test_get_item_SOURCES = get_item.c \
../lxc/af_unix.c ../lxc/af_unix.h \ ../lxc/af_unix.c ../lxc/af_unix.h \
...@@ -379,6 +404,11 @@ lxc_test_get_item_SOURCES = get_item.c \ ...@@ -379,6 +404,11 @@ lxc_test_get_item_SOURCES = get_item.c \
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_test_get_item_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_get_item_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_test_get_item_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
lxc_test_list_SOURCES = list.c lxc_test_list_SOURCES = list.c
lxc_test_locktests_SOURCES = locktests.c \ lxc_test_locktests_SOURCES = locktests.c \
../lxc/af_unix.c ../lxc/af_unix.h \ ../lxc/af_unix.c ../lxc/af_unix.h \
...@@ -430,6 +460,10 @@ if ENABLE_SECCOMP ...@@ -430,6 +460,10 @@ if ENABLE_SECCOMP
lxc_test_locktests_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_locktests_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_test_locktests_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
lxc_test_lxcpath_SOURCES = lxcpath.c lxc_test_lxcpath_SOURCES = lxcpath.c
lxc_test_may_control_SOURCES = may_control.c lxc_test_may_control_SOURCES = may_control.c
lxc_test_mount_injection_SOURCES = mount_injection.c \ lxc_test_mount_injection_SOURCES = mount_injection.c \
...@@ -483,6 +517,10 @@ if ENABLE_SECCOMP ...@@ -483,6 +517,10 @@ if ENABLE_SECCOMP
lxc_test_mount_injection_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_mount_injection_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_test_mount_injection_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
lxc_test_parse_config_file_SOURCES = parse_config_file.c \ lxc_test_parse_config_file_SOURCES = parse_config_file.c \
lxctest.h \ lxctest.h \
../lxc/af_unix.c ../lxc/af_unix.h \ ../lxc/af_unix.c ../lxc/af_unix.h \
...@@ -534,6 +572,10 @@ if ENABLE_SECCOMP ...@@ -534,6 +572,10 @@ if ENABLE_SECCOMP
lxc_test_parse_config_file_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_parse_config_file_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_test_parse_config_file_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
lxc_test_raw_clone_SOURCES = lxc_raw_clone.c \ lxc_test_raw_clone_SOURCES = lxc_raw_clone.c \
lxctest.h \ lxctest.h \
../lxc/af_unix.c ../lxc/af_unix.h \ ../lxc/af_unix.c ../lxc/af_unix.h \
...@@ -585,6 +627,10 @@ if ENABLE_SECCOMP ...@@ -585,6 +627,10 @@ if ENABLE_SECCOMP
lxc_test_raw_clone_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_raw_clone_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_test_raw_clone_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
lxc_test_reboot_SOURCES = reboot.c lxc_test_reboot_SOURCES = reboot.c
lxc_test_saveconfig_SOURCES = saveconfig.c lxc_test_saveconfig_SOURCES = saveconfig.c
lxc_test_share_ns_SOURCES = share_ns.c \ lxc_test_share_ns_SOURCES = share_ns.c \
...@@ -650,6 +696,10 @@ if ENABLE_SECCOMP ...@@ -650,6 +696,10 @@ if ENABLE_SECCOMP
lxc_test_utils_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_utils_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
endif endif
if !HAVE_STRCHRNUL
lxc_test_utils_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
endif
AM_CFLAGS += -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \ AM_CFLAGS += -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
-DLXCPATH=\"$(LXCPATH)\" \ -DLXCPATH=\"$(LXCPATH)\" \
-DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \ -DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment