[libcxx] [test] Include header for strverscmp
authorJonathan Wakely <jwakely@redhat.com>
Wed, 18 May 2022 12:36:20 +0000 (14:36 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 18 May 2022 12:36:23 +0000 (14:36 +0200)
Reviewed By: ldionne, #libc

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

libcxx/test/support/platform_support.h

index ce7a04b..1ceb7b1 100644 (file)
 #   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" {