diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-12-10 23:27:59 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-12-10 23:27:59 +0000 |
commit | 5475701ecfb8334092b36fd1258c19096da7c1f6 (patch) | |
tree | a75a770df43a4d8604279ecf72574efcab1622c8 /lib/intercept/intercept.h | |
parent | 686cebb5face263b740bd98215c21ddb32beebe3 (diff) |
Fix intercept tests on NetBSD.
Thanks to Jose Luis Rodriguez Garcia for the patch!
Diffstat (limited to 'lib/intercept/intercept.h')
-rw-r--r-- | lib/intercept/intercept.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/intercept/intercept.h b/lib/intercept/intercept.h index 80a17d3f..c0d61638 100644 --- a/lib/intercept/intercept.h +++ b/lib/intercept/intercept.h @@ -13,6 +13,18 @@ #include <dirent.h> +#ifdef __NetBSD__ //__NetBSD_Version__ is defined in sys/param.h +#include <sys/param.h> +#endif + +#if defined __NetBSD_Version__ && __NetBSD_Version__ >= 399000800 //3.99.8 vers. +#define FUNC_OPENDIR "__opendir30" +#define FUNC_READDIR "__readdir30" +#else +#define FUNC_OPENDIR "opendir" +#define FUNC_READDIR "readdir" +#endif + #include <sys/types.h> #include <sys/stat.h> |