[U-Boot] [PATCH] Fix implicit declaration of function 'htons'

Wolfgang Denk wd at denx.de
Sat Apr 4 16:18:29 CEST 2009


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

Signed-off-by: Wolfgang Denk <wd at denx.de>
---
 tools/ncb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/ncb.c b/tools/ncb.c
index 7e123f1..c240d83 100644
--- a/tools/ncb.c
+++ b/tools/ncb.c
@@ -1,7 +1,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <sys/socket.h>
-#include <linux/in.h>
+#include <arpa/inet.h>
 
 int main (int argc, char *argv[])
 {
-- 
1.6.0.6



More information about the U-Boot mailing list