Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit e02365e

Browse files
authored
Avoid error with new clang/flex : implicit declaration of function 'isatty' (#60)
* new clang version gives following error: ``` lex.c:1611:40: error: implicit declaration of function 'isatty' is invalid in C99 [-Werror,-Wimplicit-function-declaration] b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; ```
1 parent f8629ba commit e02365e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mod2c_core/lex.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
%{
22
/* /local/src/master/nrn/src/nmodl/lex.l,v 4.2 1997/11/05 17:59:02 hines Exp */
33

4+
#include <unistd.h>
45
#include "nmodlconf.h"
56

67
#undef output

0 commit comments

Comments
 (0)