Added #ifdef linux conditionalisation to the linux-specific fixup code.

This commit is contained in:
shivers 1997-02-27 04:49:28 +00:00
parent b980922f0d
commit 6a7ecc38a1
1 changed files with 6 additions and 3 deletions

View File

@ -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;