Skip to content
Snippets Groups Projects
Commit ccbd92a2 authored by Ross Paterson's avatar Ross Paterson
Browse files

prefer bsd/libutil.h (if available) to libutil.h

libutil.h is deprecated in recent releases of libbsd
parent 5f3e4b47
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ AC_SYS_LARGEFILE
AC_CHECK_HEADERS([dirent.h fcntl.h grp.h limits.h pwd.h signal.h string.h])
AC_CHECK_HEADERS([sys/resource.h sys/stat.h sys/times.h sys/time.h])
AC_CHECK_HEADERS([sys/utsname.h sys/wait.h])
AC_CHECK_HEADERS([libutil.h pty.h utmp.h])
AC_CHECK_HEADERS([bsd/libutil.h libutil.h pty.h utmp.h])
AC_CHECK_HEADERS([termios.h time.h unistd.h utime.h])
AC_CHECK_FUNCS([getgrgid_r getgrnam_r getpwnam_r getpwuid_r getpwnam getpwuid])
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment