[Openmp-commits] [PATCH] D25071: [openmp] fix a compile error on musl-libc

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Fri Oct 7 09:19:01 PDT 2016


jlpeyton added a comment.

`_GNU_SOURCE` has to be defined for the `char*` version to be used (which we do by sending in -D_GNU_SOURCE during compilation).  So have the `#if` be

  #if defined(__GLIBC__) && defined(_GNU_SOURCE)


https://reviews.llvm.org/D25071





More information about the Openmp-commits mailing list