Skip to content

Commit

Permalink
IOSS: Protect some non-windows includes
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Oct 31, 2023
1 parent 20b4a5f commit 6b5834d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions packages/seacas/libraries/ioss/src/Ioss_FileInfo.C
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#include <ostream>
#include <stdlib.h>
#include <string>
#include <sys/errno.h>
#include <sys/unistd.h>
#include <tokenize.h>
#include <vector>

Expand Down
6 changes: 3 additions & 3 deletions packages/seacas/libraries/ioss/src/Ioss_Getline.C
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,15 @@

#ifndef __unix__
#define __unix__ 1
#include <sys/errno.h>
#endif
#endif

#include <sys/errno.h>
#include <sys/termios.h>
/********************* C library headers ********************************/
#include <ctype.h>
#include <array>
#include <cstdlib>
#include <cstring>
#include <ctype.h>
#ifndef _MSC_VER
#include <unistd.h>
#endif
Expand Down Expand Up @@ -122,6 +121,7 @@ namespace {

namespace {
#ifdef __unix__
#include <sys/termios.h>
struct termios io_new_termios;
struct termios io_old_termios;
#endif
Expand Down

0 comments on commit 6b5834d

Please sign in to comment.