Skip to content

Commit 7f000b6

Browse files
ikegami-tigaw
authored andcommitted
examples: add explicit pthread dependency to meson
Older version of meson do not add automatically the pthread dependency. Thus add it explicitly to thebuild. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent 3ec3936 commit 7f000b6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ executable(
4343
executable(
4444
'mi-mctp-csi-test',
4545
['mi-mctp-csi-test.c'],
46-
dependencies: libnvme_mi_dep,
46+
dependencies: [libnvme_mi_dep, threads_dep],
4747
include_directories: [incdir, internal_incdir]
4848
)
4949

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ conf.set(
238238
description: 'Is network address and service translation available'
239239
)
240240

241+
threads_dep = dependency('threads', required: true)
241242
dl_dep = dependency('dl', required: false)
242243
conf.set(
243244
'HAVE_LIBC_DLSYM',

0 commit comments

Comments
 (0)