From 99b82763bb851e7c6f60b3cd84f4420b3126c0fd Mon Sep 17 00:00:00 2001 From: bdc Date: Mon, 4 Nov 1996 01:29:46 +0000 Subject: [PATCH] fix for fileno on solaris 2.5 --- scsh/solaris/stdio_dep.c | 5 +++++ 1 file changed, 5 insertions(+) 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,