Skip to content

cygwin build failure on 0.60.8 due to _fileno #592

@matzeri

Description

@matzeri

Compiling 0.60.8 on cygwin fails due to wrong expectation about _fileno.
Attached patch solves the build issue.

prog/compress.c: In function ‘main’:
prog/compress.c:28:34: warning: implicit declaration of function ‘_fileno’; did you mean ‘fileno’? [-Wimplicit-function-declaration]
 #  define SETBIN(fno)  _setmode( _fileno( fno ), _O_BINARY )
                                  ^
prog/compress.c:81:7: note: in expansion of macro ‘SETBIN’
       SETBIN (stdout);
       ^~~~~~
prog/compress.c:28:50: error: ‘_O_BINARY’ undeclared (first use in this function); did you mean ‘O_BINARY’?
 #  define SETBIN(fno)  _setmode( _fileno( fno ), _O_BINARY )
                                                  ^
prog/compress.c:81:7: note: in expansion of macro ‘SETBIN’
       SETBIN (stdout);
       ^~~~~~
prog/compress.c:28:50: note: each undeclared identifier is reported only once for each function it appears in
 #  define SETBIN(fno)  _setmode( _fileno( fno ), _O_BINARY )
                                                  ^
prog/compress.c:81:7: note: in expansion of macro ‘SETBIN’
       SETBIN (stdout);
       ^~~~~~
make[1]: *** [Makefile:1490: prog/compress.o] Error 1

aspell-0.60.8-1.src.patch.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions