Commit ecf3fb22 authored by Wolfgang Denk's avatar Wolfgang Denk

Fix implicit declaration of function 'htons'

Include <netinet/in.h> instead of <linux/in.h> to get htons()
prototpye.
Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
parent afcbce07
#include <stdlib.h>
#include <unistd.h>
#include <sys/socket.h>
#include <linux/in.h>
#include <netinet/in.h>
int main (int argc, char *argv[])
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment