Define _BSD_SOURCE for strdup and timerclear
ClosedPublic

Authored by heikobecker on Mar 8 2019, 3:53 PM.

Details

Summary

strdup is an extention to the C standard, timerclear originates from
the BSDs. GNU libc exposes both by default but musl libc requires a
feature flag to get them defined and thus fix libkcompactdisc's
build.

Test Plan

Builds fine with glibc and musl libcs.

Diff Detail

Repository
R349 KCompactDisc Library
Branch
define-_BSD_SOURCE-for-strdup
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 9338
Build 9356: arc lint + arc unit
heikobecker requested review of this revision.Mar 8 2019, 3:53 PM
heikobecker created this revision.
mpyne accepted this revision.Mar 23 2019, 2:39 PM
This revision is now accepted and ready to land.Mar 23 2019, 2:39 PM
This revision was automatically updated to reflect the committed changes.