Skip to content

Commit

Permalink
fix some compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Sep 4, 2019
1 parent 299b036 commit 70d3629
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/tbox/platform/posix/sched_affinity.c
Expand Up @@ -25,6 +25,7 @@
*/
#include "../sched.h"
#include <sched.h>
#include <sys/types.h>

/* //////////////////////////////////////////////////////////////////////////////////////
* implementation
Expand Down
2 changes: 1 addition & 1 deletion src/xmake.lua
Expand Up @@ -348,7 +348,7 @@ function check_interfaces()
configvar_check_csnippets("TB_CONFIG_KEYWORD_HAVE_Thread_local", "_Thread_local int a = 0;", {name = "keyword_thread_local", links = "pthread", languages = stdc})

-- check anonymous union feature
configvar_check_csnippets("TB_CONFIG_FEATURE_HAVE_ANONYMOUS_UNION", "struct __st { union {int dummy;};} a;", {name = "feature_anonymous_union", languages = stdc})
configvar_check_csnippets("TB_CONFIG_FEATURE_HAVE_ANONYMOUS_UNION", "void test() { struct __st { union {int dummy;};} a; a.dummy = 1; }", {name = "feature_anonymous_union", languages = stdc})
end

-- include project directories
Expand Down
4 changes: 2 additions & 2 deletions xmake.lua
Expand Up @@ -10,9 +10,9 @@ set_version("1.6.3", {build = "%Y%m%d%H%M"})
-- set warning all as error
set_warnings("all", "error")

-- set language: c99, c++11
-- set language: c99
stdc = "c99"
set_languages(stdc, "cxx11")
set_languages(stdc)

-- add defines to config.h
set_configvar("_GNU_SOURCE", 1)
Expand Down

0 comments on commit 70d3629

Please sign in to comment.