]> git.sur5r.net Git - u-boot/commitdiff
Fix implicit declaration of function 'htons'
authorWolfgang Denk <wd@denx.de>
Sat, 4 Apr 2009 14:14:51 +0000 (16:14 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 4 Apr 2009 15:58:19 +0000 (17:58 +0200)
Include <netinet/in.h> instead of <linux/in.h> to get htons()
prototpye.

Signed-off-by: Wolfgang Denk <wd@denx.de>
tools/ncb.c

index 7e123f163dbf99c9135ac46a46de41560ec34ad6..30acbead5f3bfb7ec0e27719a388608b0a92e33c 100644 (file)
@@ -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[])
 {