Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer committed Aug 4, 2024
1 parent 8d651d9 commit c190d74
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
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

0 comments on commit c190d74

Please sign in to comment.