--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -73,7 +73,7 @@
     set(CMAKE_EXTRA_INCLUDE_FILES "winsock.h")
   endif()
 endif()
-set(CMAKE_REQUIRED_INCLUDES "/usr/include")
+set(CMAKE_REQUIRED_INCLUDES "@TERMUX_PREFIX@/include")
 
 monetdb_configure_crypto()
 monetdb_configure_sizes()
