lclevy / ADFlib

A free, portable and open implementation of the Amiga filesystem
GNU General Public License v2.0
90 stars 30 forks source link

Fix warning with modern glibc versions #12

Closed realnc closed 4 years ago

realnc commented 4 years ago

Defining _SVID_SOURCE or _BSD_SOURCE has been deprecated in modern glibc versions and doing so will produce a warning:

/usr/include/features.h: warning:

warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

Normally, these should be replaced with _DEFAULT_SOURCE, but for backwards compatibility, the warning is not emitted when _DEFAULT_SOURCE is defined in addition to the deprecated macros, so the pattern these days is to define all three macros.

lclevy commented 4 years ago

Thank you