From 999bf72f49a501e47448010c4ddb06dc03ed1612 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sun, 9 Jul 2000 06:59:58 +0000 Subject: More portability updates. Now compiles cleanly vs glibc, libc5, and uclibc (except for mkfs_minix and fsck_minix -- and it doesn't yet link vs uclibc due to missing stuff in the library). -Erik --- loadacm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'loadacm.c') diff --git a/loadacm.c b/loadacm.c index cf393d92d..a64c691d2 100644 --- a/loadacm.c +++ b/loadacm.c @@ -68,7 +68,7 @@ int screen_map_load(int fd, FILE * fp) int parse_failed = 0; int is_unicode; - if (fstat(fp->_fileno, &stbuf)) + if (fstat(fileno(fp), &stbuf)) perror("Cannot stat map file"), exit(1); /* first try a UTF screen-map: either ASCII (no restriction) or binary (regular file) */ -- cgit v1.2.3