Corrected missing definitions from NonStop SPT build.
[openssl.git] / crypto / x509 / by_dir.c
index 6c0894796bb7f945a09cbd46313d0e01965b26cb..258ad518525743358e989e3de041792f9f139040 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 "e_os.h"
 #include "internal/cryptlib.h"
 #include <stdio.h>