Skip to content

Commit

Permalink
Merge branch 'bw/maint-1.7.9-solaris-getpass' into maint-1.7.11
Browse files Browse the repository at this point in the history
* bw/maint-1.7.9-solaris-getpass:
  Enable HAVE_DEV_TTY for Solaris
  terminal: seek when switching between reading and writing
  • Loading branch information
gitster committed Aug 24, 2012
2 parents 9e0833c + 436783c commit 3f98823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,7 @@ ifeq ($(uname_S),SunOS)
NO_REGEX = YesPlease
NO_FNMATCH_CASEFOLD = YesPlease
NO_MSGFMT_EXTENDED_OPTIONS = YesPlease
HAVE_DEV_TTY = YesPlease
ifeq ($(uname_R),5.6)
SOCKLEN_T = int
NO_HSTRERROR = YesPlease
Expand Down
1 change: 1 addition & 0 deletions compat/terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ char *git_terminal_prompt(const char *prompt, int echo)

r = strbuf_getline(&buf, fh, '\n');
if (!echo) {
fseek(fh, SEEK_CUR, 0);
putc('\n', fh);
fflush(fh);
}
Expand Down

0 comments on commit 3f98823

Please sign in to comment.