Define _BSD_SOURCE for strdup and timerclear

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

Description

Define _BSD_SOURCE for strdup and timerclear

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.

Differential Revision: https://phabricator.kde.org/D19615

Details

Committed
heikobeckerMar 25 2019, 7:42 AM
Differential Revision
D19615: Define _BSD_SOURCE for strdup and timerclear
Parents
R349:ff7d456bca5c: Include <strings.h> for strcasecmp
Branches
Unknown
Tags
Unknown