]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Include time.h in sd-event.h
authorNathaniel McCallum <npmccallum@redhat.com>
Wed, 24 Jan 2018 14:53:49 +0000 (09:53 -0500)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Jan 2018 15:34:57 +0000 (16:34 +0100)
The time-related functions in sd-event.h take as inputs constants (CLOCK_*)
defined in time.h. By including time.h in sd-event.h, we free the developer
from having to do this manually.

src/systemd/sd-event.h

index 57c1692fc1d789577930570a1d345ceb3b9c3352..676d870a1ebc1bf5bbb2c5e7f29444cb3fcee28d 100644 (file)
@@ -26,6 +26,7 @@
 #include <sys/epoll.h>
 #include <sys/signalfd.h>
 #include <sys/types.h>
+#include <time.h>
 
 #include "_sd-common.h"