From 6a7ecc38a11dd4a04a8215e7ac78f27f00183628 Mon Sep 17 00:00:00 2001 From: shivers Date: Thu, 27 Feb 1997 04:49:28 +0000 Subject: [PATCH] Added #ifdef linux conditionalisation to the linux-specific fixup code. --- scsh/fdports1.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scsh/fdports1.c b/scsh/fdports1.c index 85d5f65..78562ac 100644 --- a/scsh/fdports1.c +++ b/scsh/fdports1.c @@ -41,14 +41,17 @@ static FILE *fstar_cache[NUM_FDPORTS] = {NULL}; /* Maps fd's to ports. */ static scheme_value fdports[NUM_FDPORTS] = {SCHFALSE}; -extern void remove_bone_from_head_of_linux_libc (void); - void init_fdports(void) { int i = NUM_FDPORTS; - while( i-- ) fdports[i] = SCHFALSE; +#ifdef linux + /* Gross hack to cover for Linux lossage. -Olin */ + extern void remove_bone_from_head_of_linux_libc (void); remove_bone_from_head_of_linux_libc(); +#endif + + while( i-- ) fdports[i] = SCHFALSE; /* Specially hack stdio. */ fstar_cache[fileno(stdin)] = stdin;