MinGW: Second step of porting to MinGW

This commit is contained in:
Bart Van Assche
2021-07-17 21:22:26 -07:00
parent 16f817bfba
commit 5e6f6ec5ed
16 changed files with 98 additions and 42 deletions

View File

@@ -1,4 +1,4 @@
AM_CPPFLAGS=-I. -I${srcdir}/../include
AM_CPPFLAGS=-I. -I${srcdir}/../include -I${srcdir}/../win32
AM_CFLAGS=$(WARN_CFLAGS)
AM_LDFLAGS=-no-undefined
LIBS=../lib/libiscsi.la

View File

@@ -15,12 +15,17 @@
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include <string.h>
#ifdef HAVE_POLL_H
#include <poll.h>
#else
#include "win32_compat.h"
#endif
#include <getopt.h>
#include <unistd.h>
#include <limits.h>

View File

@@ -37,7 +37,9 @@
#if defined(_WIN32)
#include <winsock2.h>
#include "win32/win32_compat.h"
#ifdef _MSC_VER
#pragma comment(lib, "ws2_32.lib")
#endif
WSADATA wsaData;
#else
#include <poll.h>