Skip to content

Commit 2e56961

Browse files
authored
Merge pull request #180 from marcosfrm/check-sd-device
Enable systemd support only with sd-device present
2 parents 160e482 + dcd7e5d commit 2e56961

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

config/cbang/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,11 @@ def configure_deps(conf, local = True, with_openssl = True,
101101
raise SCons.Errors.StopError('Need CoreServices, IOKit, Security '
102102
'& CoreFoundation frameworks')
103103

104-
# sd-bus
104+
# sd-bus and sd-device
105105
if (env['PLATFORM'] == 'posix' and
106-
conf.CBCheckCHeader('systemd/sd-bus.h') and conf.CBCheckLib('systemd')):
106+
conf.CBCheckCHeader('systemd/sd-bus.h') and
107+
conf.CBCheckCHeader('systemd/sd-device.h') and
108+
conf.CBCheckLib('systemd')):
107109
conf.CBCheckLib('cap')
108110
env.CBConfigDef('HAVE_SYSTEMD')
109111

0 commit comments

Comments
 (0)