- 论坛徽章:
- 0
|
我写的测试程序为什么编译出错(我include的是mtd-abi.h)
if ( 0!= ioctl(fd,MTDFILEMODE,MTD_MODE_OTP_USER) )
{
printf("ioctl MTDFILEMODE fail!!!\n");
}
if ( 2048 != ioctl(fd,OTPGETREGIONINFO,buf ) )
{
printf("ioctl OTPGETREGIONINFO fail!!!\n");
}
hardware/libhardware_legacy/tests/otptest/otptest.c: In function 'main':
hardware/libhardware_legacy/tests/otptest/otptest.c:31: warning:
implicit declaration of function '_IO'
hardware/libhardware_legacy/tests/otptest/otptest.c:36: warning:
implicit declaration of function '_IOW'
hardware/libhardware_legacy/tests/otptest/otptest.c:36: error: expected
expression before 'struct' |
|