libsystemd: check if _POSIX_C_SOURCE is defined
authoremersion <contact@emersion.fr>
Thu, 21 Feb 2019 15:19:04 +0000 (16:19 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 22 Feb 2019 01:09:48 +0000 (10:09 +0900)
commit772afb76163b5fac339dac7a42a06e6121b930d9
tree04111f61dc2fad29a0b6b7ba9bdbbcd2347cb810
parent7e85b073c7bed514365c7a9dc754e318ffe6adbf
libsystemd: check if _POSIX_C_SOURCE is defined

This can cause issues if sd-event.h is included in a source file that doesn't
define _POSIX_C_SOURCE and is compiled with -Wundef.
src/systemd/sd-event.h