This is an archive of the discontinued LLVM Phabricator instance.

Define _PTHREADS for -pthread on NetBSD
AbandonedPublic

Authored by krytarowski on Feb 22 2018, 2:40 AM.

Details

Reviewers
joerg
rnk
Summary

GCC and PCC define _PTHREADS for -pthreads
on NetBSD.

The _PTHREADS preprocessor macro is used in
the NetBSD header in <stdio.h>.

NetBSD uses both: _REENTRANT and _PTHREAD
for the -pthreads command line option.

Sponsored by <The NetBSD Foundation>

Diff Detail

Repository
rL LLVM

Event Timeline

krytarowski created this revision.Feb 22 2018, 2:40 AM
krytarowski abandoned this revision.Feb 23 2018, 5:47 AM

As discussed with Joerg, _PTHREADS is considered legacy and we can bear with lack of it and inconsistency with GCC.