chiark / gitweb /
core: rework how we flush incoming traffic when a socket unit goes down
[elogind.git] / src / basic / stdio-util.h
index 359d12284bf052ac3ba3a7745a7c887cd5aa849b..757c1059110f1bc4f0d0fb815d60afdb00e622f2 100644 (file)
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && defined(HAVE_PRINTF_H)
 #include <printf.h>
+#else
+#include "parse-printf-format.h"
 #endif
 #include <stdarg.h>
 #include <stdio.h>
@@ -75,4 +77,4 @@ do {                                                                    \
                         assert_not_reached("Unknown format string argument."); \
                 }                                                       \
         }                                                               \
-} while(false)
+} while (false)