Index: trousers/configure.in =================================================================== --- trousers.orig/configure.in 2012-11-25 16:09:12.411168355 +0000 +++ trousers/configure.in 2012-11-25 16:10:17.409241488 +0000 @@ -38,11 +38,12 @@ *ppc64* | *powerpc64* | *x86_64*) CFLAGS="$CFLAGS -m64" ;; +esac +case $target in *solaris*) - CFLAGS="$CFLAGS -DSOLARIS" + # -DBSD_COMP to include sys/ioccom.h in sys/ioctl.h: + CFLAGS="$CFLAGS -DSOLARIS -DBSD_COMP" ;; - *) - ;; esac # Non-standard OpenSSL location