Re: devel/nspr: Fails to build on 1500008 5f71f9636efa

From: Nuno Teixeira <eduardo_at_freebsd.org>
Date: Fri, 29 Dec 2023 12:03:07 UTC
I think we have two options:
> 1. Build the ports with a C version of at least C99.
>

- Adding USE_CSTD=c99
- Removing -ansi:
--- configure.orig     2023-12-29 11:54:11 UTC
+++ configure
-    CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall"
+    CFLAGS="$CFLAGS $(DSO_CFLAGS) -Wall"

Fix build.

Notes:

Adding USE_CSTD=c99 doesn't fix build by itself like we seen on some ports
that were fixed by it.

Something have changed from current 1500007 to 1500008.



> 2. Remove the inline from tcp_[gs]et_flags().
>
> Best regards
> Michael
> > --
> > Nuno Teixeira
> > FreeBSD Committer (ports)
>
>

-- 
Nuno Teixeira
FreeBSD Committer (ports)