some header files of s3c2440camera project

majid
hi

I just renamed "/usr/include" directory of PC. 
It shows that some files of s3c2440camera project, use these area headers.
I defined KERNELDIR as "/opt/FriendlyARM/linux-2.6.32" and included
-I$(KERNELDIR)/include
lots of header files of s3c2440camera project  use this area, truly.



when it is  "/usr/include", Makefile produce object and binary files; but
"objdump -d test_capture" shows that it is a i386 ones, that in mini2440
produce [test_capture: line 1: syntax error: "(" unexpected] error.

majid
these are header files of 'test_capture.c'.
only the second header file uses KERNELDIR header files area

#include <asm/types.h>          /* for videodev2.h */
#include <linux/videodev2.h>

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <unistd.h>

majid
KERNELDIR is "/opt/FriendlyARM/mini2440/linux-2.6.32.2"

majid
any body has met my issue?

majid
could you please somebody check his/her "mini2440\linux-2.6.32.2\include\"
for the following files

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <unistd.h>