[PATCH app/fonttosfnt 5/5] Replace _BSD_SOURCE with _DEFAULT_SOURCE
Alan Coopersmith
alan.coopersmith at oracle.com
Tue Jul 31 03:06:40 UTC 2018
On 07/30/18 06:53 PM, Peter Hutterer wrote:
> /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
> # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
> Makefile.am | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index 6ce70b7..29169b1 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -22,7 +22,7 @@
> SUBDIRS = man
> bin_PROGRAMS = fonttosfnt
>
> -AM_CFLAGS = -DXVENDORNAME=\"X.Org\ Foundation\" $(FONTTOSFNT_CFLAGS) -DXVENDORNAMESHORT=\"X.Org\" -D_BSD_SOURCE -D_GNU_SOURCE $(CWARNFLAGS)
> +AM_CFLAGS = -DXVENDORNAME=\"X.Org\ Foundation\" $(FONTTOSFNT_CFLAGS) -DXVENDORNAMESHORT=\"X.Org\" -D_DEFAULT_SOURCE -D_GNU_SOURCE $(CWARNFLAGS)
> fonttosfnt_LDADD = $(FONTTOSFNT_LIBS) -lm
>
> fonttosfnt_SOURCES = \
>
We could replace -D_GNU_SOURCE with AC_USE_SYSTEM_EXTENSIONS but it looks like
that doesn't include _BSD_SOURCE or _DEFAULT_SOURCE, so
Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>
--
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Engineering - https://blogs.oracle.com/alanc
More information about the xorg-devel
mailing list