Changeset 7918 in project for chicken/branches/prerelease


Ignore:
Timestamp:
01/24/08 09:01:17 (13 years ago)
Author:
felix winkelmann
Message:

merged get_tty_size patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chicken/branches/prerelease/posixunix.scm

    r7864 r7918  
    367367#define C_set_groups(n)   C_fix(setgroups(C_unfix(n), C_groups))
    368368
     369#ifdef TIOCGWINSZ
    369370static int get_tty_size(int p, int *rows, int *cols)
    370371{
     
    381382 return r;
    382383}
     384#else
     385static int get_tty_size(int p, int *rows, int *cols)
     386{
     387 *rows = *cols = 0;
     388 return -1;
     389}
     390#endif
    383391
    384392EOF
Note: See TracChangeset for help on using the changeset viewer.