xorg-cf-files/u_xorg-cf-files-D_DEFAULT_SOURCE.patch
Stefan Dirsch 83564ac353 - Update to version 1.0.8
* This is a minor update to ship the contributed support for Linux
    on RISC-V & LoongArch, and AArch64 on Darwin (MacOS), as well as
    to fix incompatibility when using GNU binutils 2.36 and later on
    FreeBSD, and to correct the setting of the rarely (never?) used
    ENCODINGSDIR in site.def.
- supersedes u_riscv.patch
- refreshed u_xorg-cf-files-D_DEFAULT_SOURCE.patch

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xorg-cf-files?expand=0&rev=25
2023-02-22 03:59:36 +00:00

36 lines
1.4 KiB
Diff

Index: xorg-cf-files-1.0.8/gnu.cf
===================================================================
--- xorg-cf-files-1.0.8.orig/gnu.cf
+++ xorg-cf-files-1.0.8/gnu.cf
@@ -21,7 +21,7 @@ XCOMM operating system: OSName (OSMajor
#define GNUSourceDefines -D_POSIX_C_SOURCE=199309L \
-D_POSIX_SOURCE -D_XOPEN_SOURCE \
- -D_BSD_SOURCE -D_SVID_SOURCE
+ -D_DEFAULT_SOURCE
XCOMM XXXMB: What about _GNU_SOURCE, see Linux/UseInstalled?
Index: xorg-cf-files-1.0.8/linux.cf
===================================================================
--- xorg-cf-files-1.0.8.orig/linux.cf
+++ xorg-cf-files-1.0.8/linux.cf
@@ -242,7 +242,7 @@ InstallNamedTargetNoClobber(install,file
#if LinuxCLibMajorVersion >= 6
# define LinuxSourceDefines -D_POSIX_C_SOURCE=199309L \
-D_POSIX_SOURCE -D_XOPEN_SOURCE \
- -D_BSD_SOURCE -D_SVID_SOURCE \
+ -D_DEFAULT_SOURCE \
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
LinuxAdditionalIncludes LinuxGnuSourceDefines \
LinuxLocaleDefines
@@ -261,7 +261,7 @@ InstallNamedTargetNoClobber(install,file
# endif
#else
# define LinuxSourceDefines -D_POSIX_SOURCE -D_POSIX_C_SOURCE=2 \
- -D_BSD_SOURCE -D_SVID_SOURCE \
+ -D_DEFAULT_SOURCE \
LinuxGnuSourceDefines LinuxLocaleDefines
# define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
# ifndef HasLibCrypt