[PATCH libdrm] intel: Fix build failure in test_decode.c

Lauri Kasanen cand at gmx.com
Sat Jun 30 03:12:45 PDT 2012


Hi list

The recently released libdrm 2.4.37 does not compile the Intel part:

test_decode.c: In function 'compare_batch':
test_decode.c:107: error: implicit declaration of function 'open_memstream'

PS: Please CC me.

Signed-off-by: Lauri Kasanen <cand at gmx.com>
---
 intel/test_decode.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/intel/test_decode.c b/intel/test_decode.c
index c9ab7ad..0fcdf3b 100644
--- a/intel/test_decode.c
+++ b/intel/test_decode.c
@@ -21,6 +21,8 @@
  * IN THE SOFTWARE.
  */
 
+#define _GNU_SOURCE
+
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
-- 
1.7.2.1



More information about the dri-devel mailing list