mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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:
parent
afcbce07e9
commit
ecf3fb223a
1 changed files with 1 additions and 1 deletions
|
|
@ -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[])
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue