diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/HsUnix.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/HsUnix.h b/include/HsUnix.h index 4afd51a..5acdb74 100644 --- a/include/HsUnix.h +++ b/include/HsUnix.h @@ -10,6 +10,7 @@ #define HSUNIX_H #include "HsUnixConfig.h" +#include "HsFFI.h" /* ultra-evil... */ #undef PACKAGE_BUGREPORT @@ -200,4 +201,16 @@ INLINE int __hsunix_unsetenv(const char *name) #endif } +/* A size that will contain many path names, but not necessarily all + * (PATH_MAX is not defined on systems with unlimited path length, + * e.g. the Hurd). + */ +INLINE HsInt __hsunix_long_path_size() { +#ifdef PATH_MAX + return PATH_MAX; +#else + return 4096; +#endif +} + #endif |