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>
This commit is contained in:
Wolfgang Denk 2009-04-04 16:14:51 +02:00
parent afcbce07e9
commit ecf3fb223a

View file

@ -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[])
{