| # | Line 105 | Line 105 | void initPhotonHeap (PhotonMap *pmap) | |
|---|---|---|
| 105 | /* Open heap file */ | |
| 106 | if (!(pmap -> heap = tmpfile())) | |
| 107 | error(SYSTEM, "failed opening heap file in initPhotonHeap"); | |
| 108 | + | #ifdef F_SETFL /* XXX is there an alternate needed for Windows? */ |
| 109 | fdFlags = fcntl(fileno(pmap -> heap), F_GETFL); | |
| 110 | fcntl(fileno(pmap -> heap), F_SETFL, fdFlags | O_APPEND); | |
| 111 | + | #endif |
| 112 | /* ftruncate(fileno(pmap -> heap), 0); */ | |
| 113 | } | |
| 114 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |