Skip to content

Commit 43c5e61

Browse files
committed
[SystemZ][z/OS][libcxx]:Fix fopen64 undeclared error in 32 bit mode
z/OS doesn't support fopen64() functions. Modify the preprocessor directive for z/OS to use fopen() instead. Reviewed By: #libc, abhina.sreeskantharajan, muiez, ldionne Differential Revision: https://reviews.llvm.org/D111226
1 parent ef83515 commit 43c5e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/test/support/filesystem_test_helper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ struct scoped_test_env
180180
// 2GB.
181181
std::string create_file(fs::path filename_path, uintmax_t size = 0) {
182182
std::string filename = filename_path.string();
183-
#if defined(__LP64__) || defined(_WIN32)
183+
#if defined(__LP64__) || defined(_WIN32) || defined(__MVS__)
184184
auto large_file_fopen = fopen;
185185
auto large_file_ftruncate = utils::ftruncate;
186186
using large_file_offset_t = off_t;

0 commit comments

Comments
 (0)