X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Fstdio-util.h;h=757c1059110f1bc4f0d0fb815d60afdb00e622f2;hp=a5bdc56788edf44f7cfd5027b83b781e460b8333;hb=5489ba3e334d21609a042d5dc1615323f2903181;hpb=1d120b339a85b3bee6bce78253ee303ff9d2522a
diff --git a/src/basic/stdio-util.h b/src/basic/stdio-util.h
index a5bdc5678..757c10591 100644
--- a/src/basic/stdio-util.h
+++ b/src/basic/stdio-util.h
@@ -1,5 +1,3 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
#pragma once
/***
@@ -21,8 +19,10 @@
along with systemd; If not, see .
***/
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && defined(HAVE_PRINTF_H)
#include
+#else
+#include "parse-printf-format.h"
#endif
#include
#include
@@ -77,4 +77,4 @@ do { \
assert_not_reached("Unknown format string argument."); \
} \
} \
-} while(false)
+} while (false)