-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Milestone
Description
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
Metadata
Metadata
Assignees
Labels
No labels