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=359d12284bf052ac3ba3a7745a7c887cd5aa849b;hb=5489ba3e334d21609a042d5dc1615323f2903181;hpb=076d998b73bf53e6652ea3ae4bed169e57423741
diff --git a/src/basic/stdio-util.h b/src/basic/stdio-util.h
index 359d12284..757c10591 100644
--- a/src/basic/stdio-util.h
+++ b/src/basic/stdio-util.h
@@ -19,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
@@ -75,4 +77,4 @@ do { \
assert_not_reached("Unknown format string argument."); \
} \
} \
-} while(false)
+} while (false)