# | Line 160 | Line 160 | input2str(const char *inpspec) | |
---|---|---|
160 | fprintf(stderr, "%s: cannot open\n", inpspec); | |
161 | return ""; | |
162 | } | |
163 | + | #ifndef _WIN32 /* XXX somehow broken on Windows */ |
164 | len = lseek(fd, 0L, SEEK_END); | |
165 | if (len > 0) { | |
166 | lseek(fd, 0L, SEEK_SET); | |
# | Line 178 | Line 179 | input2str(const char *inpspec) | |
179 | close(fd); | |
180 | return str; | |
181 | } | |
182 | + | #endif |
183 | fp = fdopen(fd, "r"); /* not a regular file */ | |
184 | } | |
185 | /* reading from stream */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |