编译一个应用程序,报以下错误:
[root@localhost 3250RTC]# make
gcc -o 3250rtc 3250rtc.c
3250rtc.c: In function ‘update_rtc’:
3250rtc.c:47: error: expected expression before ‘struct’
make: *** [3250rtc] Error 1
解决办法:
#include <sys/ioctl.h>
编译一个应用程序,报以下错误:
[root@localhost 3250RTC]# make
gcc -o 3250rtc 3250rtc.c
3250rtc.c: In function ‘update_rtc’:
3250rtc.c:47: error: expected expression before ‘struct’
make: *** [3250rtc] Error 1
解决办法:
#include <sys/ioctl.h>