Commit 3926905a authored by Mark Hills's avatar Mark Hills
Browse files

Use DEFAULT_SOURCE

We get the following warning on build:

In file included from /usr/include/assert.h:35:
/usr/include/features.h:148:3: warning: "_BSD_SOURCE and _SVID_SOURCE are
      deprecated, use _DEFAULT_SOURCE" [-W#warnings]

This is a FAQ in the linux-man project [*]

  You are compiling the code on a system that has glibc 2.20 or later
  installed. In glibc 2.20, the _BSD_SOURCE and _SVID_SOURCE feature
  test macros were deprecated

[*] http://man7.org/tlpi/code/faq.html
parent 49ceb191
......@@ -17,7 +17,7 @@
*
*/
#define _BSD_SOURCE /* vfork() */
#define _DEFAULT_SOURCE /* vfork() */
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment