commit | ecf3fb223a56e3c6aa696d94d694eeaca0f44d33 | [log] [tgz] |
---|---|---|
author | Wolfgang Denk <wd@denx.de> | Sat Apr 04 16:14:51 2009 +0200 |
committer | Wolfgang Denk <wd@denx.de> | Sat Apr 04 17:58:19 2009 +0200 |
tree | c680e8e1e7aebfef3fd56314dd08ddd4932977b1 | |
parent | afcbce07e9323c0e8aeb783ba7ce6104860fd7a7 [diff] [blame] |
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>
diff --git a/tools/ncb.c b/tools/ncb.c index 7e123f1..30acbea 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[]) {