summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/journal/journal-file.c3
-rw-r--r--src/journal/journal-file.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 390996a815..1174a52a66 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -10,6 +10,8 @@
#include <sys/uio.h>
#include <unistd.h>
+#include "sd-event.h"
+
#include "alloc-util.h"
#include "btrfs-util.h"
#include "chattr-util.h"
@@ -23,7 +25,6 @@
#include "parse-util.h"
#include "path-util.h"
#include "random-util.h"
-#include "sd-event.h"
#include "set.h"
#include "stat-util.h"
#include "string-util.h"
diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h
index 09b7ba090d..29e324d8cf 100644
--- a/src/journal/journal-file.h
+++ b/src/journal/journal-file.h
@@ -4,16 +4,16 @@
#include <inttypes.h>
#if HAVE_GCRYPT
-#include <gcrypt.h>
+# include <gcrypt.h>
#endif
+#include "sd-event.h"
#include "sd-id128.h"
#include "hashmap.h"
#include "journal-def.h"
#include "macro.h"
#include "mmap-cache.h"
-#include "sd-event.h"
#include "sparse-endian.h"
typedef struct JournalMetrics {