summaryrefslogtreecommitdiff
path: root/firmware/include/sys
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-05-06 21:49:09 +0000
committerThomas Martitz <kugel@rockbox.org>2010-05-06 21:49:09 +0000
commit3e400b2ae60a2f21b1892bf29758f8913059f381 (patch)
tree62d54e7bdc35fc707f7bc90ee92b2d94a0255fba /firmware/include/sys
parent77dfff5a5524e0a9d3ae54d8bb61d3c01e6082bb (diff)
Fix checkwps by using host system's file IO (thanks to r25843/r25844) and by including a work around for systems that try to get intN_t via sys/types.h (which should be wrong, but well).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25854 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include/sys')
-rw-r--r--firmware/include/sys/types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/include/sys/types.h b/firmware/include/sys/types.h
index 07f9e9c8c7..ecc25fd749 100644
--- a/firmware/include/sys/types.h
+++ b/firmware/include/sys/types.h
@@ -30,6 +30,9 @@
/*
* include string.h for size_t for convinence */
#include <string.h>
+/* make some (debian, ubuntu...) systems happy that inappropriately include
+ * sys/types.h to get intN_t ... */
+#include <inttypes.h>
#if !defined(__ssize_t_defined) && !defined(_SSIZE_T_) && !defined(ssize_t) && !defined(_SSIZE_T_DECLARED)
#define __ssize_t_defined