# | Line 78 | Line 78 | fcompile( /* get definitions from a file */ | |
---|---|---|
78 | eputs(": cannot open\n"); | |
79 | quit(1); | |
80 | } | |
81 | < | initfile(fp, fname, 0); |
81 | > | #ifdef getc_unlocked /* avoid stupid semaphores */ |
82 | > | flockfile(fp); |
83 | > | #endif |
84 | > | initfile(fp, fname, 0); |
85 | while (nextc != EOF) | |
86 | getstatement(); | |
87 | if (fname != NULL) | |
88 | fclose(fp); | |
89 | + | #ifdef getc_unlocked |
90 | + | else |
91 | + | funlockfile(fp); |
92 | + | #endif |
93 | } | |
94 | ||
95 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |