Commit 805d2a8e authored by Bernhard Nortmann's avatar Bernhard Nortmann
Browse files

Makefile: Provide a way to pass explicit _NETBSD_SOURCE

Commit 73c20eea

 removed that symbol
from fel.c - this adds it back (in the Makefile) to address #22.

Caveat: This probably requires you to use "make OS=NetBSD". I have
currently no way of testing it; we're only checking Linux and OSX
builds.
Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
parent 8c507076
......@@ -27,6 +27,10 @@ DEFINES = -D_POSIX_C_SOURCE=200112L
DEFINES += -D_BSD_SOURCE
# glibc 2.20+ also requires _DEFAULT_SOURCE
DEFINES += -D_DEFAULT_SOURCE
ifeq (NetBSD,$(OS))
# add explicit _NETBSD_SOURCE, see https://github.com/linux-sunxi/sunxi-tools/pull/22
DEFINES += -D_NETBSD_SOURCE
endif
# Tools useful on host and target
TOOLS = sunxi-fexc sunxi-bootinfo sunxi-fel sunxi-nand-part
......
Markdown is supported
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