Index: uspace/lib/c/generic/double_to_str.c
===================================================================
--- uspace/lib/c/generic/double_to_str.c	(revision 8ddaaacd4f1ffc7cd429e863b42a92bfe0fbf899)
+++ uspace/lib/c/generic/double_to_str.c	(revision bc6cdc420ee3247a39e14fcfb229d0ccfaa1e539)
@@ -32,4 +32,5 @@
 #include <ieee_double.h>
 
+#include <limits.h>
 #include <stdint.h>
 #include <stdbool.h>
Index: uspace/lib/c/generic/gsort.c
===================================================================
--- uspace/lib/c/generic/gsort.c	(revision 8ddaaacd4f1ffc7cd429e863b42a92bfe0fbf899)
+++ uspace/lib/c/generic/gsort.c	(revision bc6cdc420ee3247a39e14fcfb229d0ccfaa1e539)
@@ -41,4 +41,5 @@
 
 #include <gsort.h>
+#include <inttypes.h>
 #include <mem.h>
 #include <malloc.h>
Index: uspace/lib/c/generic/inet/addr.c
===================================================================
--- uspace/lib/c/generic/inet/addr.c	(revision 8ddaaacd4f1ffc7cd429e863b42a92bfe0fbf899)
+++ uspace/lib/c/generic/inet/addr.c	(revision bc6cdc420ee3247a39e14fcfb229d0ccfaa1e539)
@@ -41,4 +41,5 @@
 #include <malloc.h>
 #include <bitops.h>
+#include <inttypes.h>
 
 #define INET_PREFIXSTRSIZE  5
Index: uspace/lib/c/generic/io/printf_core.c
===================================================================
--- uspace/lib/c/generic/io/printf_core.c	(revision 8ddaaacd4f1ffc7cd429e863b42a92bfe0fbf899)
+++ uspace/lib/c/generic/io/printf_core.c	(revision bc6cdc420ee3247a39e14fcfb229d0ccfaa1e539)
@@ -46,4 +46,5 @@
 #include <assert.h>
 #include <macros.h>
+#include <wchar.h>
 
 
Index: uspace/lib/c/generic/str.c
===================================================================
--- uspace/lib/c/generic/str.c	(revision 8ddaaacd4f1ffc7cd429e863b42a92bfe0fbf899)
+++ uspace/lib/c/generic/str.c	(revision bc6cdc420ee3247a39e14fcfb229d0ccfaa1e539)
@@ -46,4 +46,5 @@
 #include <align.h>
 #include <mem.h>
+#include <limits.h>
 
 /** Check the condition if wchar_t is signed */
