summaryrefslogtreecommitdiff
path: root/nuttx/include/sys/types.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-13 15:13:37 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-13 15:13:37 +0000
commitc37fdc28c2cfdf41a549ba245c1cad85b757e53a (patch)
tree2812daa6196bae9eb0a4233aa1b28f6eb7902c44 /nuttx/include/sys/types.h
parenta3933a716fd10ac4c87089ce7fac43ee24b3a2d4 (diff)
downloadpx4-nuttx-c37fdc28c2cfdf41a549ba245c1cad85b757e53a.tar.gz
px4-nuttx-c37fdc28c2cfdf41a549ba245c1cad85b757e53a.tar.bz2
px4-nuttx-c37fdc28c2cfdf41a549ba245c1cad85b757e53a.zip
Eliminate some hcs12 compile errors/warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2329 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/sys/types.h')
-rw-r--r--nuttx/include/sys/types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/nuttx/include/sys/types.h b/nuttx/include/sys/types.h
index 0c0204255..91544bf0c 100644
--- a/nuttx/include/sys/types.h
+++ b/nuttx/include/sys/types.h
@@ -135,6 +135,15 @@ typedef int STATUS;
typedef unsigned int socklen_t;
typedef uint16 sa_family_t;
+/* The type useconds_t shall be an unsigned integer type capable of storing
+ * values at least in the range [0, 1000000]. The type suseconds_t shall be
+ * a signed integer type capable of storing values at least in the range
+ * [-1, 1000000].
+ */
+
+typedef uint32 useconds_t;
+typedef sint32 suseconds_t;
+
/* Task entry point */
typedef int (*main_t)(int argc, char *argv[]);