[Android Q&A, Help & Troubleshooting] rahulhindusthani:
Hi ,

I want to generate adbd daemon by building android source code which i downloaded from https://github.com/android/platform_system_core. I tried to build using Eclipse ADT version22.0.1. I got a bunch of errors and i stuck. The errors i got i pasted here

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/stat.h:81:15: error: storage class specified for parameter 'chmod'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/stat.h:82:15: error: storage class specified for parameter 'fchmod'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/stat.h:83:15: error: storage class specified for parameter 'mkdir'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/stat.h:85:15: error: storage class specified for parameter 'stat'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/stat.h:86:15: error: storage class specified for parameter 'fstat'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/stat.h:87:15: error: storage class specified for parameter 'lstat'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/stat.h:88:15: error: storage class specified for parameter 'mknod'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/stat.h:89:15: error: storage class specified for parameter 'umask'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/stat.h:96:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/stat.h:100:13: error: storage class specified for parameter 'fstatat'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/stat.h:101:13: error: storage class specified for parameter 'mkdirat'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/stat.h:102:12: error: storage class specified for parameter 'fchownat'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/stat.h:103:12: error: storage class specified for parameter 'fchmodat'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/stat.h:104:12: error: storage class specified for parameter 'renameat'

In file included from E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/asm/fcntl.h:20:0,

from E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/linux/fcntl.h:15,

from E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/fcntl.h:33,

from jni/sysdeps.h:278,

from jni/adb.c:31:

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/asm-generic/fcntl.h:117:1: error: empty declaration [-Werror]

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/asm-generic/fcntl.h:138:1: error: empty declaration [-Werror]

In file included from E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:34:0,

from E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/fcntl.h:34,

from jni/sysdeps.h:278,

from jni/adb.c:31:

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/select.h:38:27: error: storage class specified for parameter 'fd_set'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/select.h:40:24: error: expected declaration specifiers or '...' before 'fd_set'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/select.h:40:34: error: expected declaration specifiers or '...' before 'fd_set'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/select.h:40:44: error: expected declaration specifiers or '...' before 'fd_set'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/select.h:41:27: error: expected declaration specifiers or '...' before 'fd_set'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/select.h:41:44: error: expected declaration specifiers or '...' before 'fd_set'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/select.h:41:62: error: expected declaration specifiers or '...' before 'fd_set'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/select.h:42:58: error: type defaults to 'int' in declaration of 'sigset_t' [-Werror=implicit-int]

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/select.h:42:67: error: expected ';', ',' or ')' before '*' token

In file included from E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:35:0,

from E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/fcntl.h:34,

from jni/sysdeps.h:278,

from jni/adb.c:31:

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/sysconf.h:132:12: error: storage class specified for parameter 'sysconf'

In file included from E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:36:0,

from E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/fcntl.h:34,

from jni/sysdeps.h:278,

from jni/adb.c:31:

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/linux/capability.h:23:11: error: storage class specified for parameter 'cap_user_header_t'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/linux/capability.h:29:11: error: storage class specified for parameter 'cap_user_data_t'

In file included from E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:37:0,

from E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/fcntl.h:34,

from jni/sysdeps.h:278,

from jni/adb.c:31:

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/pathconf.h:58:13: error: storage class specified for parameter 'fpathconf'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/pathconf.h:59:13: error: storage class specified for parameter 'pathconf'

In file included from E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/fcntl.h:34:0,

from jni/sysdeps.h:278,

from jni/adb.c:31:

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:51:15: error: storage class specified for parameter 'environ'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:52:24: error: storage class specified for parameter '_exit'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:54:15: error: storage class specified for parameter 'fork'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:55:15: error: storage class specified for parameter 'vfork'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:56:15: error: storage class specified for parameter 'getpid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:57:15: error: storage class specified for parameter 'gettid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:58:15: error: storage class specified for parameter 'getpgid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:59:15: error: storage class specified for parameter 'setpgid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:60:15: error: storage class specified for parameter 'getppid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:61:15: error: storage class specified for parameter 'getpgrp'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:62:15: error: storage class specified for parameter 'setpgrp'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:63:15: error: storage class specified for parameter 'setsid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:65:12: error: storage class specified for parameter 'execv'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:66:12: error: storage class specified for parameter 'execvp'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:67:12: error: storage class specified for parameter 'execve'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:68:12: error: storage class specified for parameter 'execl'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:69:12: error: storage class specified for parameter 'execlp'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:70:12: error: storage class specified for parameter 'execle'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:71:19: error: expected declaration specifiers or '...' before 'cap_user_header_t'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:71:43: error: expected declaration specifiers or '...' before 'cap_user_data_t'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:72:19: error: expected declaration specifiers or '...' before 'cap_user_header_t'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:72:49: error: type defaults to 'int' in declaration of 'cap_user_data_t' [-Werror=implicit-int]

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:72:65: error: expected ';', ',' or ')' before 'datap'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:75:12: error: storage class specified for parameter 'prctl'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:77:12: error: storage class specified for parameter 'nice'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:79:12: error: storage class specified for parameter 'setuid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:80:14: error: storage class specified for parameter 'getuid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:81:12: error: storage class specified for parameter 'seteuid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:82:14: error: storage class specified for parameter 'geteuid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:83:12: error: storage class specified for parameter 'setgid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:84:14: error: storage class specified for parameter 'getgid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:85:12: error: storage class specified for parameter 'setegid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:86:14: error: storage class specified for parameter 'getegid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:87:12: error: storage class specified for parameter 'getgroups'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:88:12: error: storage class specified for parameter 'setgroups'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:89:12: error: storage class specified for parameter 'setreuid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:90:12: error: storage class specified for parameter 'setregid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:91:12: error: storage class specified for parameter 'setresuid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:92:12: error: storage class specified for parameter 'setresgid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:93:12: error: storage class specified for parameter 'getresuid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:94:12: error: storage class specified for parameter 'getresgid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:95:12: error: storage class specified for parameter 'issetugid'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:96:14: error: storage class specified for parameter 'getlogin'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:105:12: error: storage class specified for parameter 'access'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:106:12: error: storage class specified for parameter 'link'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:107:12: error: storage class specified for parameter 'unlink'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:108:12: error: storage class specified for parameter 'chdir'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:109:12: error: storage class specified for parameter 'fchdir'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:110:12: error: storage class specified for parameter 'rmdir'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:111:12: error: storage class specified for parameter 'pipe'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:112:12: error: storage class specified for parameter 'chroot'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:113:12: error: storage class specified for parameter 'symlink'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:114:12: error: storage class specified for parameter 'readlink'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:115:12: error: storage class specified for parameter 'chown'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:116:12: error: storage class specified for parameter 'fchown'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:117:12: error: storage class specified for parameter 'lchown'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:118:12: error: storage class specified for parameter 'truncate'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:119:14: error: storage class specified for parameter 'getcwd'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:121:12: error: storage class specified for parameter 'sync'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:123:12: error: storage class specified for parameter 'close'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:124:14: error: storage class specified for parameter 'lseek'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:125:16: error: storage class specified for parameter 'lseek64'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:127:16: error: storage class specified for parameter 'read'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:128:16: error: storage class specified for parameter 'write'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:129:16: error: storage class specified for parameter 'pread'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:130:16: error: storage class specified for parameter 'pwrite'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:132:12: error: storage class specified for parameter 'dup'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:133:12: error: storage class specified for parameter 'dup2'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:134:12: error: storage class specified for parameter 'fcntl'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:135:12: error: storage class specified for parameter 'ioctl'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:136:12: error: storage class specified for parameter 'flock'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:137:12: error: storage class specified for parameter 'fsync'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:138:12: error: storage class specified for parameter 'ftruncate'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:140:12: error: storage class specified for parameter 'pause'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:141:21: error: storage class specified for parameter 'alarm'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:142:21: error: storage class specified for parameter 'sleep'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:143:13: error: storage class specified for parameter 'usleep'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:145:12: error: storage class specified for parameter 'gethostname'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:147:12: error: storage class specified for parameter 'getdtablesize'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:149:14: error: storage class specified for parameter '__brk'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:150:12: error: storage class specified for parameter 'brk'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:151:14: error: storage class specified for parameter 'sbrk'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:153:12: error: storage class specified for parameter 'getopt'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:154:14: error: storage class specified for parameter 'optarg'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:155:12: error: storage class specified for parameter 'optind'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:155:20: error: storage class specified for parameter 'opterr'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:155:28: error: storage class specified for parameter 'optopt'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:157:12: error: storage class specified for parameter 'isatty'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:158:14: error: storage class specified for parameter 'ttyname'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:160:13: error: storage class specified for parameter 'acct'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:162:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:166:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:171:12: error: storage class specified for parameter 'sysconf'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:171:12: error: redefinition of parameter 'sysconf'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/sys/sysconf.h:132:12: note: previous definition of 'sysconf' was here

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:173:12: error: storage class specified for parameter 'daemon'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:176:12: error: storage class specified for parameter 'cacheflush'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:178:14: error: storage class specified for parameter 'tcgetpgrp'

E:/Andriod/adt-bundle-windows-x86_64-20130522/ndk/platforms/android-3/arch-arm/usr/include/unistd.h:179:14: error: storage class specified for parameter 'tcsetpgrp'

In file included from jni/sysdeps.h:278:0,

please guide me...:(