mirror of
https://xff.cz/git/u-boot/
synced 2025-09-05 02:32:11 +02: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:
@@ -1,7 +1,7 @@
|
|||||||
#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[])
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user