Skip to content

Commit

Permalink
Define _GNU_SOURCE
Browse files Browse the repository at this point in the history
Required by posix_openpt(3) and wcwidth(3) on Linux.
  • Loading branch information
mptre committed Apr 18, 2017
1 parent 369350b commit ffb4ca4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
AUTOMAKE_OPTIONS=foreign

AM_CFLAGS=-pedantic -Wall -Werror -Wextra
AM_CPPFLAGS=-D_GNU_SOURCE

bin_PROGRAMS=pick
dist_pick_SOURCES=pick.c compat.h compat.c
Expand All @@ -19,8 +20,6 @@ T_LOG_COMPILER=$(top_srcdir)/tests/pick-test.sh
check_PROGRAMS=tests/pick-test
tests_pick_test_SOURCES=tests/pick-test.c
tests_pick_test_CFLAGS=$(AM_CFLAGS)
# Required by posix_openpt on Linux.
tests_pick_test_CFLAGS+=-D_XOPEN_SOURCE=600

EXTRA_DIST=INSTALL.md INSTALL.md.in LICENSE README.md tests/pick-test.sh $(TESTS)

Expand Down

0 comments on commit ffb4ca4

Please sign in to comment.