From ecf3fb223a56e3c6aa696d94d694eeaca0f44d33 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk <wd@denx.de> Date: Sat, 4 Apr 2009 16:14:51 +0200 Subject: [PATCH] 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> --- tools/ncb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ncb.c b/tools/ncb.c index 7e123f163d..30acbead5f 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[]) { -- 2.39.5