[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] glob: do not place declarations after code, so it will compile o
From: |
Benno Schulenberg |
Subject: |
[patch] glob: do not place declarations after code, so it will compile on Haiku |
Date: |
Sun, 2 Jul 2017 11:34:34 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 |
Hi,
Trying to build nano from git on Haiku failed because, among other
things, in the gnulib module glob, a variable is declared after a
bit of code and the gcc-2* compiler on Haiku does not permit that.
(This is on a 32-bit machine.)
Attached is a patch that avoids the issue. (For my build, I need
only the first hunk, but since a comment on the next function says
to keep the two functions in sync...)
(Please CC; not subscribed.)
Benno
0001-glob-declare-variables-at-the-very-start-of-their-sc.patch
Description: Text Data
- [patch] glob: do not place declarations after code, so it will compile on Haiku,
Benno Schulenberg <=