chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: rework how we flush incoming traffic when a socket unit goes down
[elogind.git]
/
src
/
basic
/
stdio-util.h
diff --git
a/src/basic/stdio-util.h
b/src/basic/stdio-util.h
index a5bdc56788edf44f7cfd5027b83b781e460b8333..757c1059110f1bc4f0d0fb815d60afdb00e622f2 100644
(file)
--- 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
/***
#pragma once
/***
@@
-21,8
+19,10
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#if
def __GLIBC__
+#if
defined(__GLIBC__) && defined(HAVE_PRINTF_H)
#include <printf.h>
#include <printf.h>
+#else
+#include "parse-printf-format.h"
#endif
#include <stdarg.h>
#include <stdio.h>
#endif
#include <stdarg.h>
#include <stdio.h>
@@
-77,4
+77,4
@@
do { \
assert_not_reached("Unknown format string argument."); \
} \
} \
assert_not_reached("Unknown format string argument."); \
} \
} \
-} while(false)
+} while
(false)