Merge lp:~hjd/widelands/freebsd-unlink into lp:widelands
Status: | Merged |
---|---|
Merged at revision: | 7111 |
Proposed branch: | lp:~hjd/widelands/freebsd-unlink |
Merge into: | lp:widelands |
Diff against target: |
11 lines (+1/-0) 1 file modified
src/io/filesystem/disk_filesystem.cc (+1/-0) |
To merge this branch: | bzr merge lp:~hjd/widelands/freebsd-unlink |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
SirVer | Approve | ||
Hans Joachim Desserud | Needs Resubmitting | ||
Review via email: mp+226905@code.launchpad.net |
Description of the change
Hello again :)
So after a bit back and forth, my freebsd-branch was merged and everything was working. Well, except that latest trunk failed to build on FreeBSD. Specifically src/io/
I'm not quite sure how this broke it, but I noticed that the most recent change in this directory was removing the usage of boost/noncopyable [1]. After re-adding this include, it built fine again. Of course this wasn't going to be a permanent solution, so I looked around a bit and found unistd.h which contains unlink(). After including this, it now builds again.
I wonder whether the include should be moved down among the "only-include-
unistd.h is a unix only header. So you have to wrap it in a #ifdef.