Changeset 7917 in project for chicken/trunk


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

added stub for get_tty_size for platforms where it is not available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chicken/trunk/posixunix.scm

    r7864 r7917  
    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.