[libcxx-commits] [libcxx] 46d9a6e - [libcxx] [test] Include header for strverscmp

Benjamin Kramer via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 18 05:37:22 PDT 2022


Author: Jonathan Wakely
Date: 2022-05-18T14:36:23+02:00
New Revision: 46d9a6ebd6155900e26cf036fcc312d1e1e10d3f

URL: https://github.com/llvm/llvm-project/commit/46d9a6ebd6155900e26cf036fcc312d1e1e10d3f
DIFF: https://github.com/llvm/llvm-project/commit/46d9a6ebd6155900e26cf036fcc312d1e1e10d3f.diff

LOG: [libcxx] [test] Include header for strverscmp

Reviewed By: ldionne, #libc

Differential Revision: https://reviews.llvm.org/D122570

Added: 
    

Modified: 
    libcxx/test/support/platform_support.h

Removed: 
    


################################################################################
diff  --git a/libcxx/test/support/platform_support.h b/libcxx/test/support/platform_support.h
index ce7a04b2a3087..1ceb7b1637320 100644
--- a/libcxx/test/support/platform_support.h
+++ b/libcxx/test/support/platform_support.h
@@ -45,6 +45,10 @@
 #   include <unistd.h> // close
 #endif
 
+#if defined(_CS_GNU_LIBC_VERSION)
+# include <string.h> // strverscmp
+#endif
+
 #if defined(_NEWLIB_VERSION) && defined(__STRICT_ANSI__)
 // Newlib provides this, but in the header it's under __STRICT_ANSI__
 extern "C" {


        


More information about the libcxx-commits mailing list