trasher: Include all the necessary headers
authorMartin Storsjö <martin@martin.st>
Thu, 13 Sep 2012 09:55:44 +0000 (12:55 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 13 Sep 2012 20:12:54 +0000 (23:12 +0300)
The missing headers are required for errno and for strerror.
This fixes building of this tool on mingw32ce.

Signed-off-by: Martin Storsjö <martin@martin.st>
tools/trasher.c

index 11605b8..35625e9 100644 (file)
@@ -21,6 +21,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <inttypes.h>
+#include <errno.h>
+#include <string.h>
 
 static uint32_t state;
 static uint32_t ran(void)