File n_added-defines-for-xalloc-xrealloc.patch of Package xf86-video-v4l

From 9f226d282549df1507e9c10dde43228cf954a5c8 Mon Sep 17 00:00:00 2001
From: Stefan Dirsch <sndirsch@suse.de>
Date: Mon, 11 Apr 2016 13:44:35 +0200
Subject: [PATCH] added defines for xalloc/xrealloc

xalloc/xrealloc functions have been removed in xorg-server sources
after release 1.16.4
---
 src/v4l.c | 4 ++++
 1 file changed, 4 insertions(+)

Index: xf86-video-v4l-0.2.0/src/v4l.c
===================================================================
--- xf86-video-v4l-0.2.0.orig/src/v4l.c
+++ xf86-video-v4l-0.2.0/src/v4l.c
@@ -37,6 +37,10 @@
 /* definition removed in xorg-server sources after 1.16.4 */
 #define VIDEO_INVERT_CLIPLIST   0x00000002
 
+/* functions removed in xorg-server sources after 1.16.4 */
+#define xalloc malloc
+#define xrealloc realloc
+
 static void     V4LIdentify(int flags);
 static Bool     V4LProbe(DriverPtr drv, int flags);
 static const OptionInfoRec * V4LAvailableOptions(int chipid, int busid);
openSUSE Build Service is sponsored by