After some adjustments, apply the changes OpenSSL 1.0.0d on OpenVMS
[openssl.git] / crypto / rand / randfile.c
index f9b709e6d53f300a74e82f3776f57e68d80a863c..bc7d9c58049df58b7ac1a098befff75ffa8eb712 100644 (file)
@@ -144,7 +144,9 @@ int RAND_load_file(const char *file, long bytes)
           * I/O because we will waste system entropy. 
           */
          bytes = (bytes == -1) ? 2048 : bytes; /* ok, is 2048 enough? */
+#ifndef OPENSSL_NO_SETVBUF_IONBF
          setvbuf(in, NULL, _IONBF, 0); /* don't do buffered reads */
+#endif /* ndef OPENSSL_NO_SETVBUF_IONBF */
        }
 #endif
        for (;;)