summaryrefslogtreecommitdiff
path: root/tests/console_c/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/console_c/xmake.lua')
-rwxr-xr-xtests/console_c/xmake.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/console_c/xmake.lua b/tests/console_c/xmake.lua
index fbb3ce8ad..bc2b7d0d9 100755
--- a/tests/console_c/xmake.lua
+++ b/tests/console_c/xmake.lua
@@ -30,4 +30,10 @@ target("console_c")
-- add files
add_files("src/*.c")
+ set_config_h("$(buildir)/config.h")
+ set_config_h_prefix("TEST")
+
+ add_cfunc(nil, "POLL", nil, {"sys/poll.h"}, "poll")
+ add_cfunc("libc", nil, nil, {"sys/select.h"}, "select")
+ add_cfunc("pthread", nil, "pthread", "pthread.h", "pthread_create")