OSDN Git Service

__assert: include unistd.h for smallint
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 20 Nov 2009 08:37:56 +0000 (09:37 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 20 Nov 2009 08:40:42 +0000 (09:40 +0100)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/misc/assert/__assert.c

index 18c6f5e..8afde52 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-
+#include <unistd.h>
 
 /* Get the prototype from assert.h as a double-check. */
 #undef NDEBUG
@@ -63,5 +63,4 @@ void __assert(const char *assertion, const char * filename,
        /* shouldn't we? fflush(stderr); */
        abort();
 }
-
 libc_hidden_def(__assert)