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