提交 ecf3fb22 编写于 作者: W Wolfgang Denk

Fix implicit declaration of function 'htons'

Include <netinet/in.h> instead of <linux/in.h> to get htons()
prototpye.
Signed-off-by: NWolfgang Denk <wd@denx.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册