Code

Fix compilation with GCC when _GNU_SOURCE isn't defined.
[sysdb.git] / src / tools / sysdbd / main.c
index cc3525e30ef4374e3c904797cccd176de2e94043..7bfbaa650c2888c5c30e183c89eb873768c5c8d3 100644 (file)
@@ -47,6 +47,7 @@
 #endif /* ! HAVE_LIBGEN_H */
 
 #include <errno.h>
+#include <time.h>
 
 #include <sys/stat.h>
 #include <fcntl.h>
@@ -370,8 +371,6 @@ main(int argc, char **argv)
 
        if (sdb_ssl_init())
                exit(1);
-       if (sdb_store_init())
-               exit(1);
        sdb_plugin_init_all();
        plugin_main_loop.default_interval = SECS_TO_SDB_TIME(60);