Added #ifdef linux conditionalisation to the linux-specific fixup code.
This commit is contained in:
parent
b980922f0d
commit
6a7ecc38a1
|
@ -41,14 +41,17 @@ static FILE *fstar_cache[NUM_FDPORTS] = {NULL};
|
||||||
/* Maps fd's to ports. */
|
/* Maps fd's to ports. */
|
||||||
static scheme_value fdports[NUM_FDPORTS] = {SCHFALSE};
|
static scheme_value fdports[NUM_FDPORTS] = {SCHFALSE};
|
||||||
|
|
||||||
extern void remove_bone_from_head_of_linux_libc (void);
|
|
||||||
|
|
||||||
void init_fdports(void)
|
void init_fdports(void)
|
||||||
{
|
{
|
||||||
int i = NUM_FDPORTS;
|
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();
|
remove_bone_from_head_of_linux_libc();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
while( i-- ) fdports[i] = SCHFALSE;
|
||||||
|
|
||||||
/* Specially hack stdio. */
|
/* Specially hack stdio. */
|
||||||
fstar_cache[fileno(stdin)] = stdin;
|
fstar_cache[fileno(stdin)] = stdin;
|
||||||
|
|
Loading…
Reference in New Issue