1From 74fe72583472bcc3c89a52839cac2ebbad6c8a74 Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Tue, 28 Mar 2017 11:34:52 -0700 4Subject: [PATCH 3/4] cli: Define _GNU_SOURCE for getting sighandler_t 5 6Signed-off-by: Khem Raj <raj.khem@gmail.com> 7--- 8Upstream-Status: Pending 9 10 cli/cli_readline.c | 4 ++-- 11 1 file changed, 2 insertions(+), 2 deletions(-) 12 13diff --git a/cli/cli_readline.c b/cli/cli_readline.c 14index 127136c..931779b 100644 15--- a/cli/cli_readline.c 16+++ b/cli/cli_readline.c 17@@ -17,7 +17,7 @@ 18 * Boston, MA 02110-1301 USA 19 * 20 *****************************************************************************/ 21- 22+#define _GNU_SOURCE 23 #include <stdio.h> 24 #include <unistd.h> 25 #include <sys/types.h> 26@@ -634,7 +634,7 @@ static void cli_rl_uninstall_signal_handlers(void) 27 28 static int cli_rl_install_signal_handlers(void) 29 { 30- __sighandler_t handler; 31+ sighandler_t handler; 32 33 rl_catch_signals = 0; 34 rl_clear_signals(); 35-- 362.12.1 37 38