chiark / gitweb /
Include time.h in sd-event.h
authorNathaniel McCallum <npmccallum@redhat.com>
Wed, 24 Jan 2018 14:53:49 +0000 (09:53 -0500)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:15 +0000 (07:50 +0200)
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..7b25d0c956f04956484c65c3e3c56953dbeecfe9 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"