Access fd_fileno correctly.
authorjbj <devnull@localhost>
Thu, 30 Sep 1999 16:11:52 +0000 (16:11 +0000)
committerjbj <devnull@localhost>
Thu, 30 Sep 1999 16:11:52 +0000 (16:11 +0000)
CVS patchset: 3354
CVS date: 1999/09/30 16:11:52

build.c

diff --git a/build.c b/build.c
index e3fe075..0b1de4d 100644 (file)
--- a/build.c
+++ b/build.c
@@ -57,7 +57,7 @@ static int isSpecFile(const char *specfile)
     int count;
     int checking;
 
-    if ((fd = fdOpen(specfile, O_RDONLY, 0)) < 0) {
+    if (fdFileno((fd = fdOpen(specfile, O_RDONLY, 0))) < 0) {
        fprintf(stderr, _("Unable to open spec file: %s\n"), specfile);
        return 0;
     }