Skip to content

Commit 86b62b8

Browse files
committed
fix: define HAVE_SEMAPHORE preprocessor symbol when header is available
Signed-off-by: Christopher Arndt <[email protected]>
1 parent 995a2e1 commit 86b62b8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ coremidi_support = host_machine.system() == 'darwin' and coremidi_dep.found() an
7272
winmm_support = host_machine.system() == 'windows' and winmm_dep.found() and get_option('winmm')
7373

7474
threads_dep = dependency('threads', required: alsa_support or jack_support)
75+
have_semaphore = cpp.has_header('semaphore.h')
7576

7677
pymod = import('python')
7778
python = pymod.find_installation(get_option('python'), required: true)

rtmidi/meson.build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ endif
3434

3535
if jack_support
3636
defines += ['-D__UNIX_JACK__', '-DJACK_HAS_PORT_RENAME']
37+
if have_semaphore
38+
defines += ['-DHAVE_SEMAPHORE']
39+
endif
3740
dependencies += [jack_dep]
3841
endif
3942

0 commit comments

Comments
 (0)