diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-04-23 09:43:07 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-04-23 09:43:07 -0300 |
| commit | 42b947296b82d33b3ad2806eee096a87cf236161 (patch) | |
| tree | 01321b6851e1d9e296257656fa49cacb0de2de39 | |
| parent | f37e65d1cb53db19d2d18cfccd8cdd4527a557d6 (diff) | |
| download | lua-42b947296b82d33b3ad2806eee096a87cf236161.tar.gz lua-42b947296b82d33b3ad2806eee096a87cf236161.tar.bz2 lua-42b947296b82d33b3ad2806eee096a87cf236161.zip | |
"fileno" is not ansi.
| -rw-r--r-- | lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** Linguagem para Usuarios de Aplicacao | 3 | ** Linguagem para Usuarios de Aplicacao |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_lua="$Id: lua.c,v 1.7 1995/10/31 17:05:35 roberto Exp roberto $"; | 6 | char *rcs_lua="$Id: lua.c,v 1.8 1996/03/12 13:14:52 roberto Exp roberto $"; |
| 7 | 7 | ||
| 8 | #include <stdio.h> | 8 | #include <stdio.h> |
| 9 | #include <string.h> | 9 | #include <string.h> |
| @@ -41,7 +41,7 @@ static void lua_getargv (void) | |||
| 41 | 41 | ||
| 42 | static void manual_input (void) | 42 | static void manual_input (void) |
| 43 | { | 43 | { |
| 44 | if (isatty(fileno(stdin))) | 44 | if (isatty(0)) |
| 45 | { | 45 | { |
| 46 | char buffer[250]; | 46 | char buffer[250]; |
| 47 | while (fgets(buffer, sizeof(buffer), stdin) != 0) | 47 | while (fgets(buffer, sizeof(buffer), stdin) != 0) |
