diff --git a/meson.build b/meson.build
index ad35e4295e9c4c1ffd05e1212d50b38e88f06bff..978ed8f8ea48125375e62cde6df3ab683f0b5127 100644
--- a/meson.build
+++ b/meson.build
@@ -10,7 +10,7 @@ libm = cc.find_library('m')
 
 glib_dep = dependency('glib-2.0', version: '>= 2.16', required: false)
 openmp_dep = dependency('openmp', required: false)
-pthreads_dep = dependency('pthreads', required: false)
+thread_dep = dependency('threads', required: false)
 
 conf_data = configuration_data()
 
diff --git a/src/meson.build b/src/meson.build
index 8f29956ba3037a8d869461bf3be3ce00f76adcea..10713c14ab8e6674a3ee68c4e1dab7be0546a0c3 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -34,6 +34,6 @@ if openmp_dep.found()
     subdir('openmp')
 endif
 
-if pthreads_dep.found()
-    subdir('pthreads')
+if thread_dep.found()
+    subdir('pthread')
 endif
diff --git a/src/pthreads/meson.build b/src/pthread/meson.build
similarity index 73%
rename from src/pthreads/meson.build
rename to src/pthread/meson.build
index 84f361a3beff7cf3fa66878e141eb894de6cb2ba..d8d7939573f914c534dfc8f717892f40bf6d295c 100644
--- a/src/pthreads/meson.build
+++ b/src/pthread/meson.build
@@ -3,4 +3,4 @@
 # SPDX-License-Identifier: CC0-1.0
 
 executable('thread-incr', 'thread-incr.c',
-           dependencies: [pthreads_dep, utils_dep])
+           dependencies: [thread_dep, utils_dep])
diff --git a/src/pthreads/thread-incr.c b/src/pthread/thread-incr.c
similarity index 100%
rename from src/pthreads/thread-incr.c
rename to src/pthread/thread-incr.c