Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cygwin build failure on 0.60.8 due to _fileno #592

Open
matzeri opened this issue Dec 26, 2019 · 0 comments
Open

cygwin build failure on 0.60.8 due to _fileno #592

matzeri opened this issue Dec 26, 2019 · 0 comments
Milestone

Comments

@matzeri
Copy link

matzeri commented Dec 26, 2019

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

@kevina kevina added this to the 0.60.9 milestone Jul 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants