浏览代码

Fix implicit declaration of function 'htons'

Include <netinet/in.h> instead of <linux/in.h> to get htons()
prototpye.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Wolfgang Denk 16 年之前
父节点
当前提交
ecf3fb223a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/ncb.c

+ 1 - 1
tools/ncb.c

@@ -1,7 +1,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <sys/socket.h>
-#include <linux/in.h>
+#include <netinet/in.h>
 
 int main (int argc, char *argv[])
 {