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

4 Apr
2009
4 Apr
'09
5:57 p.m.
Include <netinet/in.h> instead of <linux/in.h> to get htons() prototpye.
Signed-off-by: Wolfgang Denk wd@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
5883
Age (days ago)
5883
Last active (days ago)
0 comments
1 participants
participants (1)
-
Wolfgang Denk