Re: [PATCH 80/83] run-command: make dup_devnull() non static
- From
Christian Couder <christian.couder@gmail.com>
- Date
- May 5, 2016, 09:50 UTC
- Message-ID
- <CAP8UFD2f1L3YKNBA4zP1bmGe8BQitxZp-aDsGP5UTDv06LbLBg@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.2.20.1604251704300.2896@virtualbox>
On Mon, Apr 25, 2016 at 5:05 PM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 17 quoted lines
> Hi Chris,
>
> On Sun, 24 Apr 2016, Christian Couder wrote:
>
>> diff --git a/run-command.c b/run-command.c
>> index 8c7115a..29d2bda 100644
>> --- a/run-command.c
>> +++ b/run-command.c
>> @@ -85,7 +85,7 @@ static inline void close_pair(int fd[2])
>> }
>>
>> #ifndef GIT_WINDOWS_NATIVE
>> -static inline void dup_devnull(int to)
>> +void dup_devnull(int to)
>> {
>
> The #ifndef GIT_WINDOWS_NATIVE rings very, very loud alarm bells.Yeah, but I must say that I don't know what I should do about this. Do you have a suggestion? Should I try to implement the same function for Windows?