From cd1dcdb2b7458717c6692e43c4ecc36e92a3f81c Mon Sep 17 00:00:00 2001 From: Mihai Moldovan <ïonic@ionic.de> Date: Wed, 17 Aug 2016 04:51:32 +0000 Subject: nx-X11/programs/Xserver/include/os.h: backport xallocarray(). --- nx-X11/programs/Xserver/include/os.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nx-X11/programs') 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__ -- cgit v1.2.3