]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
install: include OS headers before our own definition
authorLennart Poettering <lennart@poettering.net>
Thu, 4 Mar 2021 15:06:06 +0000 (16:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Mar 2021 15:20:46 +0000 (16:20 +0100)
Doesn't matter much, but matches more our usual coding style where our
definition are done after all headers provided by the OS are included.

src/shared/install.h

index 305e4f74b8fcd89aa009228dcb1c0204a74201c3..948faa0ca7d8b479fc05fae6cbe3f75f69d8903e 100644 (file)
@@ -1,6 +1,8 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
+#include <stdbool.h>
+
 typedef enum UnitFilePresetMode UnitFilePresetMode;
 typedef enum UnitFileChangeType UnitFileChangeType;
 typedef enum UnitFileFlags UnitFileFlags;
@@ -9,8 +11,6 @@ typedef struct UnitFileChange UnitFileChange;
 typedef struct UnitFileList UnitFileList;
 typedef struct UnitFileInstallInfo UnitFileInstallInfo;
 
-#include <stdbool.h>
-
 #include "hashmap.h"
 #include "macro.h"
 #include "path-lookup.h"