Corrected missing definitions from NonStop SPT build.
[openssl.git] / crypto / rand / randfile.c
index 655dc71b06609b25619a7f4216cb6fe2c8a4d2c8..c3246c4c62a8464acd053e47ef48acdbdf681346 100644 (file)
@@ -7,6 +7,15 @@
  * https://www.openssl.org/source/license.html
  */
 
+#if defined (__TANDEM) && defined (_SPT_MODEL_)
+/*
+ * These definitions have to come first in SPT due to scoping of the
+ * declarations in c99 associated with SPT use of stat.
+ */
+# include <sys/types.h>
+# include <sys/stat.h>
+#endif
+
 #include "internal/cryptlib.h"
 
 #include <errno.h>