diff options
author | Neil Moore <neil@s-z.org> | 2013-11-29 20:32:17 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-11-29 20:34:30 -0500 |
commit | 3da172073c49c1340dbb63d55f4f1f0ce90c158f (patch) | |
tree | 23db4bc47ed941f2c02b2307e25d159a82d012fd /crawl-ref/source/state.cc | |
parent | bc885c9053c99de6b53d82a339c2a7467cc627e3 (diff) | |
download | crawl-ref-3da172073c49c1340dbb63d55f4f1f0ce90c158f.tar.gz crawl-ref-3da172073c49c1340dbb63d55f4f1f0ce90c158f.zip |
Include a header (geekosaur)
It's needed for access() in the GDB check. I didn't make it depend
on !defined(DEBUG_DIAGNOSTICS), in case that logic changes.
Non-Windows, non-Unix systems might be a problem, if we supported them.
Diffstat (limited to 'crawl-ref/source/state.cc')
-rw-r--r-- | crawl-ref/source/state.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/state.cc b/crawl-ref/source/state.cc index b2e1342b99..d7aa2cf640 100644 --- a/crawl-ref/source/state.cc +++ b/crawl-ref/source/state.cc @@ -5,6 +5,10 @@ #include "AppHdr.h" +#ifndef TARGET_OS_WINDOWS +#include <unistd.h> +#endif + #include "externs.h" #include "dbg-util.h" |