commit | 52ee16764409ad3eb3513434b4faa19c45a16079 | [log] [tgz] |
---|---|---|
author | willson-chen <willson.chenwx@gmail.com> | Tue Jul 30 16:01:13 2019 +0800 |
committer | Cosmin Truta <ctruta@gmail.com> | Mon Apr 27 00:46:06 2020 -0400 |
tree | 477268f1ce9d1ea7367250fcc9b1a6e3591ea2b6 | |
parent | eb6767273a4eb5d6f4ad528370d7262cf7aa220c [diff] |
Fix a warning on Linux caused by _BSD_SOURCE I got a warning while compiling under Ubuntu 18.04 and gcc 7.4: "__BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" Quote from the Linux Programmer's Manual: "To allow code that requires _BSD_SOURCE in glibc 2.19 and earlier and _DEFAULT_SOURCE in glibc 2.20 and later to compile without warnings, define both _BSD_SOURCE and _DEFAULT_SOURCE."