Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFS upstream #4285

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions source/adios2/toolkit/transport/file/FileHTTP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@
#define INST_ADDRSTRLEN 50
#else
#include <netinet/in.h>
#include <sys/socket.h>

#ifdef __WIN32__
// Not visual studio, but still windows
#include <winsock2.h>
#else
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#endif
#include <cstring>
#include <netdb.h>
#include <netinet/in.h>
#include <unistd.h>
#endif
namespace adios2
Expand Down
2 changes: 2 additions & 0 deletions source/adios2/toolkit/transport/file/FilePOSIX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
#include <thread>
#ifndef _MSC_VER
#include <unistd.h> // write, close, ftruncate
#ifndef O_BINARY
#define O_BINARY 0
#endif
#else
#include <io.h>
#define close _close
Expand Down
1 change: 1 addition & 0 deletions thirdparty/enet/enet/win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <windows.h>
#include <mmsystem.h>
#include <ws2ipdef.h>
#include <ws2tcpip.h>

static enet_uint32 timeBase = 0;

Expand Down
1 change: 1 addition & 0 deletions thirdparty/ffs/ffs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ CHECK_INCLUDE_FILE(sys/un.h HAVE_SYS_UN_H)
CHECK_INCLUDE_FILE(unistd.h HAVE_UNISTD_H)
CHECK_INCLUDE_FILE(windows.h HAVE_WINDOWS_H)
CHECK_INCLUDE_FILE(winsock.h HAVE_WINSOCK_H)
CHECK_INCLUDE_FILE(winsock2.h HAVE_WINSOCK2_H)

if(SIZEOF_SIZE_T EQUAL SIZEOF_INT)
set(UIO_SIZE_T_TYPE "unsigned int")
Expand Down
3 changes: 3 additions & 0 deletions thirdparty/ffs/ffs/config.h.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
/* Define to 1 if you have the <winsock.h> header file. */
#cmakedefine HAVE_WINSOCK_H

/* Define to 1 if you have the <winsock2.h> header file. */
#cmakedefine HAVE_WINSOCK2_H

/* Define if you need struct iovec to be defined */
#cmakedefine NEED_IOVEC_DEFINE

Expand Down
8 changes: 5 additions & 3 deletions thirdparty/ffs/ffs/fm/nt_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
#define HAVE_IOVEC_DEFINE
#endif
#define FD_SETSIZE 1024
#ifdef HAVE_WINSOCK2_H
#include "winsock2.h"
#endif
#include <windows.h>
#include <stdio.h>
#include <fcntl.h>
#include <io.h>
#include "ffs.h"
#include "io_interface.h"
#include "ffs_internal.h"
#include "fm.h"
#include "fm_internal.h"

static int
nt_file_read_func(conn, buffer, length, errno_p, result_p)
Expand Down
3 changes: 3 additions & 0 deletions thirdparty/ffs/ffs/fm/unix_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#include <sys/uio.h>
#define HAVE_IOVEC_DEFINE
#endif
#ifdef HAVE_WINSOCK2_H
#include "winsock2.h"
#endif
#include <stdio.h>
#include "fm.h"
#include "fm_internal.h"
Expand Down