From bc6ef4bf8078e442cbafb7bfb8835052df89a141 Mon Sep 17 00:00:00 2001 From: John Szakmeister Date: Sun, 8 Feb 2015 13:11:32 -0500 Subject: unittests: define _Thread_local to be nothing This helps the LuaJIT ffi module to parse the header correctly. Otherwise, the whole suite of tests fail. --- test/unit/preprocess.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/unit/preprocess.lua b/test/unit/preprocess.lua index f17c7ba666..d4c2e088a4 100644 --- a/test/unit/preprocess.lua +++ b/test/unit/preprocess.lua @@ -102,7 +102,10 @@ local Gcc = { '-D "EXTERN=extern"', '-D "INIT(...)="', '-D_GNU_SOURCE', - '-DINCLUDE_GENERATED_DECLARATIONS' + '-DINCLUDE_GENERATED_DECLARATIONS', + + -- Needed for FreeBSD + '-D "_Thread_local="' } } -- cgit