compat REFACTOR put header check script with compat
diff --git a/tests/style/check_includes.sh b/compat/check_includes.sh
similarity index 90%
rename from tests/style/check_includes.sh
rename to compat/check_includes.sh
index 1a26c36..65db950 100755
--- a/tests/style/check_includes.sh
+++ b/compat/check_includes.sh
@@ -28,13 +28,16 @@
 	done
 }
 
+check_compat_func vdprintf
 check_compat_func asprintf
-check_compat_func get_current_dir_name
+check_compat_func vasprintf
 check_compat_func getline
 check_compat_func strndup
 check_compat_func strnstr
-check_compat_func vasprintf
-check_compat_func vdprintf
+check_compat_func strdupa
+check_compat_func strchrnul
+check_compat_func get_current_dir_name
+check_compat_func pthread_mutex_timedlock
 check_compat_func UNUSED
 check_compat_macro _PACKED
 
diff --git a/tests/style/CMakeLists.txt b/tests/style/CMakeLists.txt
index dd4285e..e602f24 100644
--- a/tests/style/CMakeLists.txt
+++ b/tests/style/CMakeLists.txt
@@ -1,5 +1,5 @@
 add_test(NAME headers
-    COMMAND ${CMAKE_SOURCE_DIR}/tests/style/check_includes.sh ${CMAKE_SOURCE_DIR}/src/ ${CMAKE_SOURCE_DIR}/tools/lint/ ${CMAKE_SOURCE_DIR}/tools/re/)
+    COMMAND ${CMAKE_SOURCE_DIR}/compat/check_includes.sh ${CMAKE_SOURCE_DIR}/src/ ${CMAKE_SOURCE_DIR}/tools/lint/ ${CMAKE_SOURCE_DIR}/tools/re/)
 
 if (${SOURCE_FORMAT_ENABLED})
     add_test(NAME format WORKING_DIRECTORY ${CMAKE_BINARY_DIR} COMMAND make format-check)