Fix implicit declaration of function 'htons'
PATCH 1/1 Fix implicit declaration of function 'htons'
Include <netinet/in.h> instead of <linux/in.h> to get htons() prototpye.
Signed-off-by Wolfgang Denk <[email protected]>
--- tools/ncb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
tools/ncb.c +1 -1
@@ -1,7 +1,7 @@#include <stdlib.h> #include <unistd.h> #include <sys/socket.h> -#include <linux/in.h> +#include <arpa/inet.h> int main (int argc,char *argv[]) {
Signature · 1 line
1.6.0.6