Fixes #40: add _DEFAULT_SOURCE back for Linux build
authorletoh <letoh.tw@gmail.com>
Mon, 12 Mar 2018 14:25:58 +0000 (22:25 +0800)
committerletoh <letoh.tw@gmail.com>
Mon, 12 Mar 2018 14:25:58 +0000 (22:25 +0800)
commitb5dd084c62470a0356f898b66888565429c59717
treeba334189557b7a10b48c9c0bab5d1bad396f6148
parentf1994bf609c5b053c5c0d7db2062b570fa9f5ead
Fixes #40: add _DEFAULT_SOURCE back for Linux build

This commit fixes the improper patch in the pull request #7.

When building pforth on the Linux system with glibc version before
2.19, defining _GNU_SOURCE is needed for using ECHOCTL in the
source. However, the later version of glibc uses _DEFAULT_SOURCE
instead of _GNU_SOURCE for the same purpose, we will need both symbols
for both older glibc and newer glibc.
build/unix/Makefile