瀏覽代碼

replace linux/if.h with net/if.h

ithewei 2 年之前
父節點
當前提交
df8b2d6d15
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cpputil/ifconfig.cpp

+ 1 - 1
cpputil/ifconfig.cpp

@@ -8,7 +8,7 @@
 #include <sys/socket.h>
 #include <sys/ioctl.h>
 #include <netinet/in.h>
-#include <linux/if.h>
+#include <net/if.h>
 #include <arpa/inet.h>
 
 int ifconfig(std::vector<ifconfig_t>& ifcs) {