--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -17,6 +17,8 @@
#ifndef _TCL
#define _TCL
+#include <sys/stat.h>
+
/*
* For C++ compilers, use extern "C"
*/