summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-04-04 16:14:51 +0200
committerWolfgang Denk <wd@denx.de>2009-04-04 17:58:19 +0200
commitecf3fb223a56e3c6aa696d94d694eeaca0f44d33 (patch)
treec680e8e1e7aebfef3fd56314dd08ddd4932977b1
parentafcbce07e9323c0e8aeb783ba7ce6104860fd7a7 (diff)
downloadu-boot-imx-ecf3fb223a56e3c6aa696d94d694eeaca0f44d33.zip
u-boot-imx-ecf3fb223a56e3c6aa696d94d694eeaca0f44d33.tar.gz
u-boot-imx-ecf3fb223a56e3c6aa696d94d694eeaca0f44d33.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
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[])
{