From d21f09608b186abd1683fd09d03b5c4ee449c755 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Thu, 17 May 2001 00:47:51 +0000 Subject: [PATCH] * subshell.c: Define _GNU_SOURCE to enable prototypes for allocating pseudo-terminals on GNU systems. --- src/ChangeLog | 3 +++ src/subshell.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 377a2ecc7..a2e3891c6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2001-05-16 Pavel Roskin + * subshell.c: Define _GNU_SOURCE to enable prototypes for + allocating pseudo-terminals on GNU systems. + * subshell.c (init_subshell_child): New function to initialize child process and run subshell. Code moved from ... (init_subshell): ... here. diff --git a/src/subshell.c b/src/subshell.c index 4cfe8fd45..c862faa03 100644 --- a/src/subshell.c +++ b/src/subshell.c @@ -24,6 +24,10 @@ /* {{{ Declarations */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif + #include #include /* For errno, putenv, etc. */ #include /* For errno on SunOS systems */