aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/include
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/programs/Xserver/include
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/programs/Xserver/include')
-rw-r--r--nx-X11/programs/Xserver/include/os.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/include/os.h b/nx-X11/programs/Xserver/include/os.h
index a53f0d4c8..a8ef1896d 100644
--- a/nx-X11/programs/Xserver/include/os.h
+++ b/nx-X11/programs/Xserver/include/os.h
@@ -448,6 +448,12 @@ extern void AbortDDX(void);
extern void ddxGiveUp(void);
extern int TimeSinceLastInputEvent(void);
+#ifndef HAVE_REALLOCARRAY
+#define reallocarray xreallocarray
+extern _X_EXPORT void *
+reallocarray(void *optr, size_t nmemb, size_t size);
+#endif
+
#ifndef HAVE_STRLCPY
extern _X_EXPORT size_t
strlcpy(char *dst, const char *src, size_t siz);