diff options
author | Ross Paterson <ross@soi.city.ac.uk> | 2011-06-29 18:58:04 +0100 |
---|---|---|
committer | Ross Paterson <ross@soi.city.ac.uk> | 2011-06-29 18:58:04 +0100 |
commit | ccbd92a265c98ab1119adfe83f0cd5c595fe7a59 (patch) | |
tree | dd2362ae8dd78862009441d9a62bc915ca19149c /include | |
parent | 5f3e4b478e1b84a23086f04c97a8fd6ea258de2e (diff) |
prefer bsd/libutil.h (if available) to libutil.h
libutil.h is deprecated in recent releases of libbsd
Diffstat (limited to 'include')
-rw-r--r-- | include/HsUnix.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/HsUnix.h b/include/HsUnix.h index cb8d466..d8a072a 100644 --- a/include/HsUnix.h +++ b/include/HsUnix.h @@ -75,7 +75,9 @@ #include <dirent.h> #endif -#ifdef HAVE_LIBUTIL_H +#if defined(HAVE_BSD_LIBUTIL_H) +#include <bsd/libutil.h> +#elif defined(HAVE_LIBUTIL_H) #include <libutil.h> #endif #ifdef HAVE_PTY_H |