diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-08-20 21:18:51 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-08-20 21:18:51 +0300 |
commit | 844e16cea1ffe0e02b5b727fd8960271d1842020 (patch) | |
tree | 4f88f1265121a6a471310f9f8a7b8abba3cf92e2 /extension | |
parent | 933d15a9646fd550ad923005667d7014ef1cff97 (diff) | |
download | egawk-844e16cea1ffe0e02b5b727fd8960271d1842020.tar.gz egawk-844e16cea1ffe0e02b5b727fd8960271d1842020.tar.bz2 egawk-844e16cea1ffe0e02b5b727fd8960271d1842020.zip |
Move FAKE_FD_VALUE to shared header.
Diffstat (limited to 'extension')
-rw-r--r-- | extension/ChangeLog | 4 | ||||
-rw-r--r-- | extension/gawkdirfd.h | 10 |
2 files changed, 10 insertions, 4 deletions
diff --git a/extension/ChangeLog b/extension/ChangeLog index 97c3f40e..d7e8e588 100644 --- a/extension/ChangeLog +++ b/extension/ChangeLog @@ -1,3 +1,7 @@ +2013-08-20 Arnold D. Robbins <arnold@skeeve.com> + + * gawkdirfd.h: Include ../nonposix.h to get FAKE_FD_VALUE. + 2013-08-06 Arnold D. Robbins <arnold@skeeve.com> * filefuncs.c: Change _WIN32 to __MINGW32__ globally, per diff --git a/extension/gawkdirfd.h b/extension/gawkdirfd.h index 4710dab4..a3a2b6a6 100644 --- a/extension/gawkdirfd.h +++ b/extension/gawkdirfd.h @@ -29,11 +29,13 @@ * This is for fake directory file descriptors on systems that don't * allow to open() a directory. * - * It would be nice if this could be shared with the definition in awk.h - * in the main code base, but there's not a very clean way to do that, - * at least that I can see. + * Including a header from the main gawk source to share the definition + * of FAKE_FD_VALUE is the least of all evils that I can see. + * + * Unlike the main gawk code base, this include is NOT dependant + * upon MinGW or EMX. */ -#define FAKE_FD_VALUE 42 +#include "../nonposix.h" #ifndef DIR_TO_FD # define DIR_TO_FD(d) (FAKE_FD_VALUE) |