chiark / gitweb /
Prep v229: Some musl-libc compatibility updates
authorSven Eden <yamakuzure@gmx.net>
Mon, 22 May 2017 08:18:56 +0000 (10:18 +0200)
committerSven Eden <yamakuzure@gmx.net>
Mon, 22 May 2017 08:28:34 +0000 (10:28 +0200)
- musl-libc has no <bits/local_lim.h>
- musl-libc has no <xlocale.h>
- added <missing.h> include to basic/mdkir.c

src/basic/hostname-util.c
src/basic/mkdir.c
src/basic/parse-util.c

index b3d79c5a83f1aac516fa6e3daabd03be10b8d071..b9ab884367d2909b2564a324702690268cda539d 100644 (file)
@@ -17,7 +17,9 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include <bits/local_lim.h>
+#if defined(__GLIBC__)
+# include <bits/local_lim.h>
+#endif // defined(__GLIBC__)
 #include <errno.h>
 #include <limits.h>
 #include <stdio.h>
index 6b1a98402ce18bb284335ea614aa007af6f75d4b..62e9b082e2015053fb22bacaebc398a0f0b4c82a 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "fs-util.h"
 #include "macro.h"
+#include "missing.h"
 #include "mkdir.h"
 #include "path-util.h"
 #include "stat-util.h"
index 25785136c29fd9702a5e0d90bd1a70b3d52f6683..29012b837638b059dc8bb533a9da0c732b612382 100644 (file)
@@ -23,7 +23,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <xlocale.h>
+//#include <xlocale.h>
 
 #include "alloc-util.h"
 //#include "extract-word.h"