chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
708583d
)
fix musl libc build errors
author
Enno Boland
<g@s01.de>
Tue, 16 May 2017 08:21:17 +0000
(10:21 +0200)
committer
Enno Boland
<g@s01.de>
Tue, 16 May 2017 08:22:57 +0000
(10:22 +0200)
src/basic/log.c
patch
|
blob
|
history
src/basic/stdio-util.h
patch
|
blob
|
history
diff --git
a/src/basic/log.c
b/src/basic/log.c
index f928a9d5bf36897ec569e6169afe18eaab27db4e..8217813571c72815f221a84512221706c9374a75 100644
(file)
--- a/
src/basic/log.c
+++ b/
src/basic/log.c
@@
-21,7
+21,11
@@
#include <errno.h>
#include <fcntl.h>
+#ifdef __GLIBC__
#include <printf.h>
+#else
+#include "parse-printf-format.h"
+#endif
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
diff --git
a/src/basic/stdio-util.h
b/src/basic/stdio-util.h
index b36e8a947e5615a01450b745eefd849702acff13..a5bdc56788edf44f7cfd5027b83b781e460b8333 100644
(file)
--- a/
src/basic/stdio-util.h
+++ b/
src/basic/stdio-util.h
@@
-21,7
+21,9
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#ifdef __GLIBC__
#include <printf.h>
+#endif
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>