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 11605b8a8e2b3f6bd474b35c93af8d6724776e6c..35625e9a62ce9c099f85d55e587eef46daa5019b 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)