From 5d7107ab066115cd67ee00b6f3c5eac47c97556d Mon Sep 17 00:00:00 2001 From: root Date: Mon, 29 Dec 2014 23:32:19 -0600 Subject: [PATCH] fix up files in low-level commands for mfshell so that strdup is available on old systems --- mfshell/commands/host.c | 1 + mfshell/commands/lcd.c | 1 + 2 files changed, 2 insertions(+) diff --git a/mfshell/commands/host.c b/mfshell/commands/host.c index dabf80e..15e3630 100644 --- a/mfshell/commands/host.c +++ b/mfshell/commands/host.c @@ -18,6 +18,7 @@ */ #define _POSIX_C_SOURCE 200809L // for strdup and getline +#define _GNU_SOURCE // for strdup on old systems #include #include diff --git a/mfshell/commands/lcd.c b/mfshell/commands/lcd.c index a1cad9d..1d3acf0 100644 --- a/mfshell/commands/lcd.c +++ b/mfshell/commands/lcd.c @@ -18,6 +18,7 @@ */ #define _POSIX_C_SOURCE 200809L // for strdup +#define _GNU_SOURCE // for strdup on old systems #include #include