changeset 35923:fc2fd624ecc0

Move headers only required for the MGA code below MGA ifdef. This allows compiling the tool on systems that do not support MGA.
author diego
date Tue, 19 Mar 2013 16:50:27 +0000
parents 1cc764869d00
children d16e3d64b946
files TOOLS/fastmemcpybench.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/TOOLS/fastmemcpybench.c	Tue Mar 19 16:50:25 2013 +0000
+++ b/TOOLS/fastmemcpybench.c	Tue Mar 19 16:50:27 2013 +0000
@@ -24,10 +24,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/ioctl.h>
 #include <unistd.h>
 #include <fcntl.h>
-#include <sys/mman.h>
 #include <sys/time.h>
 #include <inttypes.h>
 
@@ -122,6 +120,9 @@
 
 #ifdef CONFIG_MGA
 
+#include <sys/ioctl.h>
+#include <sys/mman.h>
+
 #include "drivers/mga_vid.h"
 
 static mga_vid_config_t mga_vid_config;