MantisBT - Zandronum |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0002815 | Zandronum | [All Projects] Bug | public | 2016-08-23 11:49 | 2016-08-23 15:47 |
|
Reporter | DrinkyBird | |
Assigned To | Torr Samaho | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | needs review | Resolution | open | |
Platform | | OS | FreeBSD | OS Version | 10.3-RELEASE |
Product Version | | |
Target Version | | Fixed in Version | | |
|
Summary | 0002815: Include <sys/wait.h> in sdl/i_system.cpp |
Description | The lack of this include is the only thing preventing Zandronum compiling without errors on FreeBSD. |
Steps To Reproduce | Compile a fresh clone of Zandronum under FreeBSD and get this error:
[ 36%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/i_system.o
/root/zandronum/src/sdl/i_system.cpp: In function 'int I_PickIWad(WadStuff*, int, bool, int)':
/root/zandronum/src/sdl/i_system.cpp:697:23: error: 'WIFEXITED' was not declared in this scope
if(WIFEXITED(status) && (WEXITSTATUS(status) == 0 || WEXITSTATUS(status) == 1))
^
/root/zandronum/src/sdl/i_system.cpp:697:47: error: 'WEXITSTATUS' was not declared in this scope
if(WIFEXITED(status) && (WEXITSTATUS(status) == 0 || WEXITSTATUS(status) == 1)) |
Additional Information | <sys/wait.h> is a standard POSIX header, so it shouldn't cause issues on Linux or other POSIX platforms. |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-08-23 11:49 | DrinkyBird | New Issue | |
2016-08-23 11:51 | DrinkyBird | Note Added: 0015521 | |
2016-08-23 14:32 | Dusk | Note Added: 0015522 | |
2016-08-23 14:32 | Dusk | Assigned To | => Torr Samaho |
2016-08-23 14:32 | Dusk | Status | new => needs review |
2016-08-23 14:36 | Edward-san | Note Added: 0015523 | |
2016-08-23 14:37 | Edward-san | Note Edited: 0015523 | bug_revision_view_page.php?bugnote_id=15523#r9450 |
2016-08-23 15:36 | Edward-san | Note Edited: 0015523 | bug_revision_view_page.php?bugnote_id=15523#r9451 |
2016-08-23 15:47 | DrinkyBird | Note Added: 0015524 | |
Notes |
|
|
Uh, I should have marked this as a suggestion, not a bug. Oh well. |
|
|
(0015522)
|
Dusk
|
2016-08-23 14:32
|
|
|
|
(0015523)
|
Edward-san
|
2016-08-23 14:36
(edited on: 2016-08-23 15:36) |
|
|
|
|
The tip of the default branch compiles fine (excluding the <sys/wait.h> error) on FreeBSD 10.3 using GCC 5.4.0, and I don't know what setup the person who made those other commits used, or whatever G/ZDoom made changes after the revision 3.0 is based on to require those commits. |
|