aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-03-08 19:33:13 +0100
committerDuncaen <mail@duncano.de>2017-03-08 19:34:12 +0100
commit8364bb76cdbf0db7ac1264532f90b0310fdda362 (patch)
tree54e3b7c43c5160abe06a49426e889daea1f8ea16
parentc7570b8fc168601bcd596624b04d0b17c6d0f508 (diff)
downloadlobase-8364bb76cdbf0db7ac1264532f90b0310fdda362.tar.gz
usr.bin/dc: fix warnings
-rw-r--r--usr.bin/dc/dc.c1
-rw-r--r--usr.bin/dc/inout.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/dc/dc.c b/usr.bin/dc/dc.c
index d029b6e..b369a97 100644
--- a/usr.bin/dc/dc.c
+++ b/usr.bin/dc/dc.c
@@ -15,6 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#define _GNU_SOURCE /* for asprintf */
#include <sys/stat.h>
#include <err.h>
diff --git a/usr.bin/dc/inout.c b/usr.bin/dc/inout.c
index 617e3fb..1045cee 100644
--- a/usr.bin/dc/inout.c
+++ b/usr.bin/dc/inout.c
@@ -15,6 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#define _GNU_SOURCE /* for asprintf */
#include <ctype.h>
#include <err.h>