Don't set _POSIX_C_SOURCE in NetBSD

According to a harfbuzz package patch on NetBSD project
https://github.com/NetBSD/pkgsrc/blob/trunk/fonts/harfbuzz/patches/patch-src_hb-blob.cc
This commit is contained in:
Ebrahim Byagowi 2019-05-18 07:44:48 -07:00 committed by GitHub
parent 08c3648c6e
commit e66eb21a46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@
* http://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html * http://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html
* https://www.oracle.com/technetwork/articles/servers-storage-dev/standardheaderfiles-453865.html * https://www.oracle.com/technetwork/articles/servers-storage-dev/standardheaderfiles-453865.html
*/ */
#if !defined(_POSIX_C_SOURCE) && !defined(_MSC_VER) #if !defined(_POSIX_C_SOURCE) && !defined(_MSC_VER) && !defined(__NetBSD__)
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-macros" #pragma GCC diagnostic ignored "-Wunused-macros"
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L