Skip to content

Commit

Permalink
erts: Fix erts build without termcap
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Nov 5, 2024
1 parent bd2ba03 commit b301c8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erts/emulator/nifs/common/prim_tty_nif.c
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,6 @@ static ERL_NIF_TERM tty_create_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM

static ERL_NIF_TERM tty_init_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {

#if defined(HAVE_TERMCAP) || defined(__WIN32__)
ERL_NIF_TERM input;
TTYResource *tty;

Expand All @@ -957,6 +956,8 @@ static ERL_NIF_TERM tty_init_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM ar
return atom_ok;
}

#if defined(HAVE_TERMCAP) || defined(__WIN32__)

tty->tty = enif_is_identical(input, atom_raw) ? enabled : disabled;

#ifndef __WIN32__
Expand Down

0 comments on commit b301c8b

Please sign in to comment.