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=b36e8a947e5615a01450b745eefd849702acff13;hb=6eed9ed454fb055f6e283858af01ffbb18c991fd;hpb=da2587d5154e11d4e643e326793f3ce2cc48dee6
diff --git a/src/basic/stdio-util.h b/src/basic/stdio-util.h
index b36e8a947..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,7 +19,11 @@
along with systemd; If not, see .
***/
+#if defined(__GLIBC__) && defined(HAVE_PRINTF_H)
#include
+#else
+#include "parse-printf-format.h"
+#endif
#include
#include
#include
@@ -75,4 +77,4 @@ do { \
assert_not_reached("Unknown format string argument."); \
} \
} \
-} while(false)
+} while (false)