Re: [PATCH] fix building for Windows

Mike Frysinger <[email protected]>
Newsgroups gmane.editors.nano.devel
Message-ID <Yh7MwPoErgYUugAk@vapier>
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
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmIezMAACgkQQWM7n+g3
9YFMeBAAwXs3Iu9l5BkuBw1NWuk2NvwaQ2uQTMdF4o56+nCqkFZZm0VuPax8+Dhl
OX2oPMPmlFoF86ACzpgnjyj7svuuEJmf9gWMowEhEXd5uEGkfojpk1S1Q5HHh1xh
+6Cxr9LQnDDhAeCisEh7C9bvwP9UYJwGA1USYEjDRwAlTdkcDcjXCpkxuGJyVWxA
7/fgb2nI0uPGk+Wdu4//TPxD4BI2yf/wIlY0dDS90Va8XaS3/fPRjoe/Dc7RO7n2
jsuzRNoErHn95ea3aE2QV9lCRDihTc0T1JDhxgrVygkF1EdghmFDIQiDmSKT/GGx
5XVDqbseRCfQ3NyaslzVTNQCQ48bJzRebkv7s9J7EZgWSznSinOiPRaAd2VCz3dN
CK8Qb4D00jAoXxhtgEXQrQvkliKCXT4Rp4A/H1aRl/4OZuu3gTGhq3XymDs9EHTO
Q9wUheoa+oks/9WKbZPNGdZsD+e9U6z1R2eVZctSUNdnZholtJIrEf2i2C/aGzC0
tkHTM8qkvLx/LkBNa20fwc1PAWiwm028w7Y1Z7VUkE/LNAX4UqNilM6E83gFb729
cff3WUqfv93tK/HoNntosFORw++1n/72Qu6WWAUtsdzGAYKl0w4PYXCBigUYmm3s
cGR6NWkf3jFUyPvqCUMK7NuCoCUC/lwl13naN9v/YcMJIn7ZdeU=
=3HeB
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.