summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-01-06 19:01:02 -0500
committerTavian Barnes <tavianator@tavianator.com>2017-01-06 19:01:02 -0500
commitb626b46a51cf40fc91583da63084ef40efebc85e (patch)
treef3eb1079edd994d0309708aa29ee20251a9fa7c4 /Makefile
parent385510fd05c5c89e265e9dec478cf7be6f2ff50f (diff)
downloadbfs-b626b46a51cf40fc91583da63084ef40efebc85e.tar.xz
Don't set _POSIX_C_SOURCE
The BSD behaviour is to hide all BSD extensions if standard-conformance feature test macros are present. We don't want strict POSIX, we want all available extensions, so ask for that.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b8d2b5b..3962b97 100644
--- a/Makefile
+++ b/Makefile
@@ -26,14 +26,13 @@ DESTDIR ?=
PREFIX ?= /usr
LOCAL_CPPFLAGS := \
- -D_POSIX_C_SOURCE=200809L \
- -D_DEFAULT_SOURCE \
- -D_BSD_SOURCE \
- -D_GNU_SOURCE \
- -D_ATFILE_SOURCE \
-D__EXTENSIONS__ \
+ -D_ATFILE_SOURCE \
+ -D_BSD_SOURCE \
-D_DARWIN_C_SOURCE \
+ -D_DEFAULT_SOURCE \
-D_FILE_OFFSET_BITS=64 \
+ -D_GNU_SOURCE \
-DBFS_VERSION=\"$(VERSION)\"
LOCAL_CFLAGS := -std=c99