Remove tests dependence on e_os.h
[openssl.git] / test / testutil / stanza.c
index 46b1e770bfddd3b7b702f533918eaec3e9219a0f..35967528f8312c4c918175a6d3f6d2a558b55b4d 100644 (file)
 #include <string.h>
 #include <ctype.h>
 
-#include "e_os.h"
+#include "internal/nelem.h"
 #include "../testutil.h"
+#include "tu_local.h"
 
 int test_start_file(STANZA *s, const char *testfile)
 {
     TEST_info("Reading %s", testfile);
     set_test_title(testfile);
     memset(s, 0, sizeof(*s));
-    if (!TEST_ptr(s->fp = BIO_new_file(testfile, "rb")))
+    if (!TEST_ptr(s->fp = BIO_new_file(testfile, "r")))
         return 0;
     s->test_file = testfile;
     return 1;