mod_journald: work around possible use of "inline" keyword in systemd #include.
This fails to compile before c99, override with APR_INLINE.
#include "mpm_common.h"
#include "mod_log_config.h"
-#define SD_JOURNAL_SUPPRESS_LOCATION 1
-
-#include "systemd/sd-journal.h"
-
#if APR_HAVE_UNISTD_H
#include <unistd.h>
#endif
+/* XXX: keep this after any other #include.
+ * Some systemd versions use the "inline" keyword which is not
+ * c89/c90 compliant, so override it...
+ */
+#if defined(__STDC__) && (!defined(__STDC_VERSION__) \
+ || __STDC_VERSION__ < 199901L)
+#undef inline
+#define inline APR_INLINE
+#endif
+#define SD_JOURNAL_SUPPRESS_LOCATION 1
+#include <systemd/sd-journal.h>
+
#define MAX_ENTRIES 15
static int journald_info_get_priority(int level)
