diff --git a/scsh/solaris/stdio_dep.c b/scsh/solaris/stdio_dep.c index 4913d14..00f35fd 100644 --- a/scsh/solaris/stdio_dep.c +++ b/scsh/solaris/stdio_dep.c @@ -26,6 +26,11 @@ #include "libcig.h" #include +/* somewhere around solaris 2.5 this changed to a function */ +#ifndef fileno +#define fileno(p) ((p)->_file) +#endif + #include "stdio_dep.h" /* Make sure the .h interface agrees with the code. */ /* These two procs return #t if data ready, #f data not ready,