Issue #1730 - Part 2: harfbuzz: Remove some useless define causing a build error

Defining _POSIX_C_SOURCE to 199309L on FreeBSD causes compile errors, because of
an obscure interaction between system wrappers and libc++ headers. The source
doesn't seem to need it at all, which tests confirm.

I bet that this is not needed either on other modern systems (even those based
on glibc), and that the define could probably be entirely removed. Not trying
it because I can't test it myself.
This commit is contained in:
Olivier Certner 2021-02-05 13:11:54 +01:00 committed by roytam1
commit 346b804fda

View file

@ -24,10 +24,12 @@
* Red Hat Author(s): Behdad Esfahbod
*/
#ifndef __FreeBSD__
/* http://www.oracle.com/technetwork/articles/servers-storage-dev/standardheaderfiles-453865.html */
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 199309L
#endif
#endif
#include "hb-private.hh"