Skip to content

Commit

Permalink
Cygwin build fix for gcc 11.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gansm committed Aug 21, 2023
1 parent c546fba commit 8b10a07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/coverity-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
- name: Install dependencies via apt-get
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get -y install \
ca-certificates \
Expand Down
8 changes: 3 additions & 5 deletions final/output/tty/ftermios.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,15 @@
***********************************************************************/

#if defined(__CYGWIN__)
#undef __STRICT_ANSI__ // need for fileno
#define _POSIX_C_SOURCE 200809L
#define _BSD_SOURCE
#ifndef __STRICT_ANSI__
#define __STRICT_ANSI__ // need for bits/c++config.h
#endif
#endif

#include <termios.h>

#if defined(__CYGWIN__)
#define __STRICT_ANSI__ // need for bits/c++config.h
#endif

#include <system_error>
#include <unordered_map>

Expand Down

0 comments on commit 8b10a07

Please sign in to comment.