[libcxx-commits] [PATCH] D111226: [SystemZ][z/OS][libcxx]:Fix fopen64 undeclared error in 32 bit mode

Fanbo Meng via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 6 06:07:44 PDT 2021


fanbo-meng created this revision.
fanbo-meng requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

z/OS doesn't support fopen64() functions. Modify the preprocessor directive for z/OS to use fopen() instead.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111226

Files:
  libcxx/test/support/filesystem_test_helper.h


Index: libcxx/test/support/filesystem_test_helper.h
===================================================================
--- libcxx/test/support/filesystem_test_helper.h
+++ libcxx/test/support/filesystem_test_helper.h
@@ -173,7 +173,7 @@
     // 2GB.
     std::string create_file(fs::path filename_path, uintmax_t size = 0) {
         std::string filename = filename_path.string();
-#if defined(__LP64__) || defined(_WIN32)
+#if defined(__LP64__) || defined(_WIN32) || defined(__MVS__)
         auto large_file_fopen = fopen;
         auto large_file_ftruncate = utils::ftruncate;
         using large_file_offset_t = off_t;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111226.377521.patch
Type: text/x-patch
Size: 625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211006/51a68f07/attachment-0001.bin>


More information about the libcxx-commits mailing list