diff --git a/pkg/oonf_api/Makefile.include b/pkg/oonf_api/Makefile.include
index 5af9c3071fb2fcb27d001914e67fc6d12288ec1e..236f801eb16bc8f9113fee377424f9b12946c02b 100644
--- a/pkg/oonf_api/Makefile.include
+++ b/pkg/oonf_api/Makefile.include
@@ -1,5 +1,5 @@
 INCLUDES += -I$(PKGDIRBASE)/oonf_api/src-api
 
-ifeq ($(shell uname -s),Darwin)
-	CFLAGS += -Wno-reserved-id-macro -Wno-keyword-macro
+ifeq ($(TOOLCHAIN), llvm)
+    CFLAGS += -Wno-keyword-macro -Wno-parentheses-equality
 endif