Skip to content

Commit 2988fe1

Browse files
dNechitapcercuei
authored andcommitted
network: Include headers for the errors that are used
Because of the missing headers, build failed when compiling on Ubuntu1804 image supported by Appveyor, with MinGW compiler. Signed-off-by: Dan Nechita <[email protected]>
1 parent 6d34cce commit 2988fe1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dns_sd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
#include "iio-lock.h"
1717
#include "iio-private.h"
1818

19+
#include <errno.h>
1920
#ifdef _WIN32
2021
#include <winsock2.h>
2122
#include <ws2tcpip.h>
2223
#else
23-
#include <errno.h>
2424
#include <netdb.h>
2525
#include <string.h>
2626
#include <sys/socket.h>

network-windows.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include "network.h"
1010

11+
#include <errno.h>
1112
#include <ws2tcpip.h>
1213
#define close(s) closesocket(s)
1314
#ifndef MAXHOSTNAMELEN

0 commit comments

Comments
 (0)