Skip to content

Commit

Permalink
[host][mkfs-msdosfs][netprotocol] _BSD_SOURCE -> _GNU_SOURCE
Browse files Browse the repository at this point in the history
The _BSD_SOURCE feature-test macro is deprecated and newer
in glibc versions the headers generate a warning for using it.
_GNU_SOURCE enables everything that does and more, and our
code is compatible with it.

Change-Id: Ic049fd835d77f17e81faae0ac3349565a5b6f9b6
  • Loading branch information
frobtech authored and CQ bot account: [email protected] committed Sep 9, 2017
1 parent 20d00ea commit fcac280
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/host/mkfs-msdosfs/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LOCAL_DIR := $(GET_LOCAL_DIR)

MKMSDOS_DIR := third_party/uapp/mkfs-msdosfs

MODULE_DEFINES := _XOPEN_SOURCE _BSD_SOURCE
MODULE_DEFINES := _XOPEN_SOURCE _GNU_SOURCE

MODULE := $(LOCAL_DIR)

Expand Down
2 changes: 1 addition & 1 deletion system/host/netprotocol/netprotocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#define _POSIX_C_SOURCE 200809L
#define _DARWIN_C_SOURCE
#define _BSD_SOURCE
#define _GNU_SOURCE

#include "netprotocol.h"

Expand Down

0 comments on commit fcac280

Please sign in to comment.