diff options
author | Ian Lynagh <ian@well-typed.com> | 2013-03-01 00:50:47 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-03-01 00:50:47 +0000 |
commit | 4a8e254cbc16b3a4f264c4dda15d8eeddd13abc7 (patch) | |
tree | 750ae872085d543fe15b9a168693607c7b9ba443 /configure.ac | |
parent | 217218f589387ca6c7385ddc85e7e4bc6f5ebdcd (diff) | |
download | haskell-4a8e254cbc16b3a4f264c4dda15d8eeddd13abc7.tar.gz |
Fix sys/cpuset.h on FreeBSD 9.1; patch from kazu-yamamoto; fixes #7708
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 78a157b536..4ae2f44787 100644 --- a/configure.ac +++ b/configure.ac @@ -671,7 +671,14 @@ dnl off_t, because it will affect the result of that test. AC_SYS_LARGEFILE dnl ** check for specific header (.h) files that we are interested in -AC_CHECK_HEADERS([bfd.h ctype.h dirent.h dlfcn.h errno.h fcntl.h grp.h limits.h locale.h nlist.h pthread.h pwd.h signal.h sys/cpuset.h sys/mman.h sys/resource.h sys/select.h sys/time.h sys/timeb.h sys/timers.h sys/times.h sys/utsname.h sys/wait.h termios.h time.h utime.h windows.h winsock.h sched.h]) +AC_CHECK_HEADERS([bfd.h ctype.h dirent.h dlfcn.h errno.h fcntl.h grp.h limits.h locale.h nlist.h pthread.h pwd.h signal.h sys/param.h sys/mman.h sys/resource.h sys/select.h sys/time.h sys/timeb.h sys/timers.h sys/times.h sys/utsname.h sys/wait.h termios.h time.h utime.h windows.h winsock.h sched.h]) + +dnl sys/cpuset.h needs sys/param.h to be included first on FreeBSD 9.1; #7708 +AC_CHECK_HEADERS([sys/cpuset.h], [], [], +[[#if HAVE_SYS_PARAM_H +# include <sys/param.h> +#endif +]]) dnl ** check if it is safe to include both <time.h> and <sys/time.h> AC_HEADER_TIME |