Skip to content

Commit

Permalink
fix(build): include <Availability.h> on macOS during build. Fixes #51
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieantonio committed Oct 30, 2023
1 parent e6e22aa commit aba23da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,14 @@ compile_with_header() {
header=$1

printf 'checking for %s... ' "$header"
# We include <Availability.h> on Apple to workaround issue an issue with
# term.h on newer macOS.
# See: https://github.com/eddieantonio/imgcat/issues/51
compile_test_program -c <<EOF
#ifdef __APPLE__
#include <Availability.h>
#endif
#include <${header}>
EOF
}
Expand Down

0 comments on commit aba23da

Please sign in to comment.