chiark / gitweb /
Merge pull request #12 from Gottox/fix-musl-228.1
authorSven Eden <yamakuzure@gmx.net>
Wed, 17 May 2017 13:15:55 +0000 (15:15 +0200)
committerGitHub <noreply@github.com>
Wed, 17 May 2017 13:15:55 +0000 (15:15 +0200)
Merged: 228.1: fix musl

src/basic/log.c
src/basic/stdio-util.h

index f928a9d5bf36897ec569e6169afe18eaab27db4e..8217813571c72815f221a84512221706c9374a75 100644 (file)
 
 #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>
index b36e8a947e5615a01450b745eefd849702acff13..a5bdc56788edf44f7cfd5027b83b781e460b8333 100644 (file)
@@ -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>