aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/config/cf/X11.tmpl
diff options
context:
space:
mode:
authorMihai Moldovan <ïonic@ionic.de>2016-08-17 04:34:50 +0000
committerMihai Moldovan <ïonic@ionic.de>2017-03-03 11:20:19 +0000
commitd189cb422b1aa14deaa490a4079ae51ab08ef641 (patch)
treed32de4f4590192a6a074cf7622084128f46d557d /nx-X11/config/cf/X11.tmpl
parent1a7fc41c2c011c05c3dc0cd8eb4ade98a2186217 (diff)
downloadnx-libs-d189cb422b1aa14deaa490a4079ae51ab08ef641.tar.gz
nx-libs-d189cb422b1aa14deaa490a4079ae51ab08ef641.tar.bz2
nx-libs-d189cb422b1aa14deaa490a4079ae51ab08ef641.zip
nx-X11/{config/cf/{{Imake,X11}.tmpl,linux.cf},programs/Xserver/{include/os.h,os/{Imakefile,reallocarray.c}}: backport reallocarray() implementation.
Diffstat (limited to 'nx-X11/config/cf/X11.tmpl')
-rw-r--r--nx-X11/config/cf/X11.tmpl9
1 files changed, 8 insertions, 1 deletions
diff --git a/nx-X11/config/cf/X11.tmpl b/nx-X11/config/cf/X11.tmpl
index d5527cdc7..ddd6e0bad 100644
--- a/nx-X11/config/cf/X11.tmpl
+++ b/nx-X11/config/cf/X11.tmpl
@@ -707,8 +707,15 @@ FCHOWN_DEFINES = -DHAS_FCHOWN
#define ServerSnprintfDefines /**/
#endif
#endif
+#ifndef ServerReallocarrayDefines
+#if HasReallocarray
+#define ServerReallocarrayDefines -DHAVE_REALLOCARRAY
+#else
+#define ServerReallocarrayDefines /**/
+#endif
+#endif
#ifndef ServerDefines
-#define ServerDefines StandardDefines PervasiveExtensionDefines ServerExtraDefines ServerAssertDefines ServerSnprintfDefines
+#define ServerDefines StandardDefines PervasiveExtensionDefines ServerExtraDefines ServerAssertDefines ServerSnprintfDefines ServerReallocarrayDefines
#endif
#ifndef MesaUseX86Asm