aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/include/os.h
diff options
context:
space:
mode:
authorMihai Moldovan <ïonic@ionic.de>2016-08-17 04:51:32 +0000
committerMihai Moldovan <ïonic@ionic.de>2017-03-03 11:20:20 +0000
commitcd1dcdb2b7458717c6692e43c4ecc36e92a3f81c (patch)
treebf408c668222581b41a0e077360d8af45e35579f /nx-X11/programs/Xserver/include/os.h
parentd189cb422b1aa14deaa490a4079ae51ab08ef641 (diff)
downloadnx-libs-cd1dcdb2b7458717c6692e43c4ecc36e92a3f81c.tar.gz
nx-libs-cd1dcdb2b7458717c6692e43c4ecc36e92a3f81c.tar.bz2
nx-libs-cd1dcdb2b7458717c6692e43c4ecc36e92a3f81c.zip
nx-X11/programs/Xserver/include/os.h: backport xallocarray().
Diffstat (limited to 'nx-X11/programs/Xserver/include/os.h')
-rw-r--r--nx-X11/programs/Xserver/include/os.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/include/os.h b/nx-X11/programs/Xserver/include/os.h
index a8ef1896d..5e16d8298 100644
--- a/nx-X11/programs/Xserver/include/os.h
+++ b/nx-X11/programs/Xserver/include/os.h
@@ -80,6 +80,8 @@ typedef struct _NewClientRec *NewClientPtr;
#define xstrdup(s) Xstrdup(s)
#define xnfstrdup(s) XNFstrdup(s)
+
+#define xallocarray(num, size) reallocarray(NULL, (num), (size))
#endif
#ifdef __SCO__