decl fixes
authorRudolf Polzer <divverent@alientrap.org>
Sun, 25 Apr 2010 16:47:49 +0000 (18:47 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 25 Apr 2010 16:47:49 +0000 (18:47 +0200)
d0.h
main.c

diff --git a/d0.h b/d0.h
index 270cc8b..db7555d 100644 (file)
--- a/d0.h
+++ b/d0.h
@@ -1,7 +1,7 @@
 #ifndef __D0_H__
 #define __D0_H__
 
-#include <stdlib.h> // size_t
+#include <unistd.h> // size_t
 
 #define EXPORT __attribute__((__visibility__("default")))
 #define WARN_UNUSED_RESULT __attribute__((warn_unused_result))
diff --git a/main.c b/main.c
index 1a649a2..2810003 100644 (file)
--- a/main.c
+++ b/main.c
@@ -22,6 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #include <stdio.h>
 #include <string.h>
 #include <time.h>
+#include <sys/time.h>
 
 void bench(double *b)
 {