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

Wolfgang Denk wd at denx.de
Sat Apr 4 17:57:46 CEST 2009


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

Signed-off-by: Wolfgang Denk <wd at denx.de>
---
V2: Make commit message and code agree:
use netinet/in.h instead of arpa/inet.h
as this seems to be more common.

 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 <netinet/in.h>
 
 int main (int argc, char *argv[])
 {
-- 
1.6.0.6



More information about the U-Boot mailing list