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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
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.