diff options
author | Wolfgang Denk <wd@denx.de> | 2009-04-04 16:14:51 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-04-04 17:58:19 +0200 |
commit | ecf3fb223a56e3c6aa696d94d694eeaca0f44d33 (patch) | |
tree | c680e8e1e7aebfef3fd56314dd08ddd4932977b1 | |
parent | afcbce07e9323c0e8aeb783ba7ce6104860fd7a7 (diff) |
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>
-rw-r--r-- | tools/ncb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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[]) { |