Skip to content
Snippets Groups Projects
Commit ecf3fb22 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

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
Branches
Tags
No related merge requests found
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <linux/in.h> #include <netinet/in.h>
int main (int argc, char *argv[]) int main (int argc, char *argv[])
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment