Skip to content

Commit

Permalink
Use _DEFAULT_SOURCE on Linux. Issue #22
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed May 19, 2021
1 parent 6c54352 commit 8bfc5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ifeq ($(UNAME_SYS), Darwin)
DRV_LDFLAGS = -flat_namespace -undefined suppress $(ERL_LDFLAGS)
else ifeq ($(UNAME_SYS), Linux)
CC ?= gcc
CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes -D_BSD_SOURCE
CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes -D_DEFAULT_SOURCE
DRV_LDFLAGS = $(ERL_LDFLAGS)
else # FreeBSD
CC ?= cc
Expand Down

0 comments on commit 8bfc5c5

Please sign in to comment.