nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] fix building for Windows


From: Mike Frysinger
Subject: Re: [PATCH] fix building for Windows
Date: Tue, 1 Mar 2022 20:47:44 -0500

On 01 Mar 2022 11:08, Benno Schulenberg wrote:
> Op 26-02-2022 om 08:15 schreef Mike Frysinger:
> > Fix building with x86_64-w64-mingw32 to cross-compile native Windows
> > programs.  Need to:
> > * add checks for missing functions
> > * don't use signals that are unavailable on the platform
> > * avoid useless non-Linux sys/ioctl.h include
> > * use putenv instead of setenv as the latter is unavailable
> > ---
> >  configure.ac |  1 +
> >  src/files.c  | 24 ++++++++++++++++++++++--
> >  src/nano.c   | 12 +++++++++---
> >  src/text.c   |  6 ++++++
> >  4 files changed, 38 insertions(+), 5 deletions(-)
> 
> Thanks.  Pushed, with some tweaks:
> 
>   https://git.savannah.gnu.org/cgit/nano.git/commit/?id=8173b1bf

the configure.ac style is a bit unclear as there's a bunch of lines that
are very long (longer than what i used), and ones that underquote.

if you want to wrap, i use m4_flatten in my own projects as it makes it
easier to keep sorted and to add/remove things w/out hitting conflicts.
AC_CHECK_FUNCS_ONCE(m4_flatten([
  chown
  chmod
  fork
]))
-mike

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]