diff options
author | Mihai Moldovan <ïonic@ionic.de> | 2016-08-17 04:51:32 +0000 |
---|---|---|
committer | Mihai Moldovan <ïonic@ionic.de> | 2017-03-03 11:20:20 +0000 |
commit | cd1dcdb2b7458717c6692e43c4ecc36e92a3f81c (patch) | |
tree | bf408c668222581b41a0e077360d8af45e35579f /nx-X11/programs/Xserver | |
parent | d189cb422b1aa14deaa490a4079ae51ab08ef641 (diff) | |
download | nx-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')
-rw-r--r-- | nx-X11/programs/Xserver/include/os.h | 2 |
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__ |