Author: avg
Date: Tue Aug  8 10:36:07 2017
New Revision: 322220

  MFV r322219: 8416 abd.h is not C++ friendly
  FreeBSD note: this is a record-only commit, we had to apply the change
  in r320156.
    A C++ compiler fails to compile abd_is_linear(), which is an inline function
    defined in abd.h, with the following error:
         error: cannot initialize return object of type 'boolean_t' with an
         rvalue of type 'bool'
    That happens because a bool can not be converted to an enum in C++.
    That's a problem because abd.h can be visible through other header files 
that a
    C++ program that works with ZFS can include.
  Reviewed by: Igor Kozhukhov <>
  Reviewed by: Dan Kimmel <>
  Reviewed by: Alek Pinchuk <>
  Approved by: Robert Mustacchi <>
  Author: Andriy Gapon <>

Directory Properties:
  head/sys/cddl/contrib/opensolaris/   (props changed)
_______________________________________________ mailing list
To unsubscribe, send any mail to ""

Reply via email to