我们有一个使用
ioctl_socket()
函数的模块,我已将 #include <sys/ioctl.h>
包含在 .cpp
中,但仍然抛出以下错误:
'ioctl_socket' was not declared in this scope
if (ioctl_socket( sockFd, SIOCSETVLAN, &ifr) == -1)
^~~~~~~~~~~~
关于如何修复编译错误有什么建议吗?预先感谢。
可能已弃用?在 qnx710 上使用 ioctl?