Index: uspace/lib/posix/limits.h
===================================================================
--- uspace/lib/posix/limits.h	(revision e64b55a6471df8acf4c2f00dcbe0140f792482c7)
+++ uspace/lib/posix/limits.h	(revision 67c64b9f3a0d67d69319dccb335e110f4be3efe5)
@@ -36,5 +36,5 @@
 #define POSIX_LIMITS_H_
 
-#include "libc/stdint.h"
+#include "stdint.h"
 #include "libc/sys/types.h"
 
Index: uspace/lib/posix/stdint.h
===================================================================
--- uspace/lib/posix/stdint.h	(revision e64b55a6471df8acf4c2f00dcbe0140f792482c7)
+++ uspace/lib/posix/stdint.h	(revision 67c64b9f3a0d67d69319dccb335e110f4be3efe5)
@@ -36,5 +36,55 @@
 #define POSIX_STDINT_H_
 
-#include "libc/stdint.h"
+#undef INT8_MAX
+#undef INT8_MIN
+#define INT8_MAX  127
+#define INT8_MIN  (-128)
+
+#undef UINT8_MAX
+#undef UINT8_MIN
+#define UINT8_MAX  255
+#define UINT8_MIN  0
+
+#undef INT16_MAX
+#undef INT16_MIN
+#define INT16_MAX  32767
+#define INT16_MIN  (-32768)
+
+#undef UINT16_MAX
+#undef UINT16_MIN
+#define UINT16_MAX  65535
+#define UINT16_MIN  0
+
+#undef INT32_MAX
+#undef INT32_MIN
+#define INT32_MAX  2147483647
+#define INT32_MIN  (-INT32_MAX - 1)
+
+#undef UINT32_MAX
+#undef UINT32_MIN
+#define UINT32_MAX  4294967295U
+#define UINT32_MIN  0U
+
+#undef INT64_MAX
+#undef INT64_MIN
+#define INT64_MAX  9223372036854775807LL
+#define INT64_MIN  (-INT64_MAX - 1LL)
+
+#undef UINT64_MAX
+#undef  UINT64_MIN
+#define UINT64_MAX  18446744073709551615ULL
+#define UINT64_MIN  0ULL
+
+#undef OFF64_MAX
+#undef OFF64_MIN
+#define OFF64_MAX  INT64_MAX
+#define OFF64_MIN  INT64_MIN
+
+#undef AOFF64_MAX
+#undef AOFF64_MIN
+#define AOFF64_MAX  UINT64_MAX
+#define AOFF64_MIN  UINT64_MIN
+
+#include "libc/sys/types.h"
 
 typedef int64_t posix_intmax_t;
Index: uspace/lib/posix/stdlib/strtold.c
===================================================================
--- uspace/lib/posix/stdlib/strtold.c	(revision e64b55a6471df8acf4c2f00dcbe0140f792482c7)
+++ uspace/lib/posix/stdlib/strtold.c	(revision 67c64b9f3a0d67d69319dccb335e110f4be3efe5)
@@ -41,5 +41,5 @@
 #include <errno.h> // TODO: use POSIX errno
 #include "../libc/bool.h"
-#include "../libc/stdint.h"
+#include "../stdint.h"
 #include "../stdlib.h"
 #include "../strings.h"
