diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-08-14 00:06:55 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-08-14 00:06:55 +0300 |
commit | c4300d657ba49db0b6d0f0884f41a29622edc58b (patch) | |
tree | a49e5590dab96979293e3c16455d9f305d9ce738 /extension/gawkdirfd.h | |
parent | 69b59a73db108ede65e4dfce90fcfb10723e1feb (diff) | |
parent | 15a922b8a62092fab8b0e9b9fa06c3182b38b596 (diff) | |
download | egawk-c4300d657ba49db0b6d0f0884f41a29622edc58b.tar.gz egawk-c4300d657ba49db0b6d0f0884f41a29622edc58b.tar.bz2 egawk-c4300d657ba49db0b6d0f0884f41a29622edc58b.zip |
Merge branch 'master' into select
Diffstat (limited to 'extension/gawkdirfd.h')
-rw-r--r-- | extension/gawkdirfd.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/extension/gawkdirfd.h b/extension/gawkdirfd.h index 52b91804..4710dab4 100644 --- a/extension/gawkdirfd.h +++ b/extension/gawkdirfd.h @@ -25,6 +25,16 @@ # define ENOTSUP ENOSYS #endif +/* + * 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. + */ +#define FAKE_FD_VALUE 42 + #ifndef DIR_TO_FD # define DIR_TO_FD(d) (FAKE_FD_VALUE) #endif @@ -39,7 +49,3 @@ dirfd (DIR *dir_p) return fd; } #endif /* HAVE_DIRFD */ - -/* This is for fake directory file descriptors on systems that don't - allow to open() a directory. */ -#define FAKE_FD_VALUE 42 |