PERFORCE change 106403 for review

Robert Watson rwatson at FreeBSD.org
Wed Sep 20 07:37:45 PDT 2006


http://perforce.freebsd.org/chv.cgi?CH=106403

Change 106403 by rwatson at rwatson_lethe on 2006/09/20 14:32:54

	Add strlcat() compat code.  Include as a static function rather than
	compile in order to avoid exposing symbols to applications that may
	link against libbsm.  This gets OpenBSM 1.0 alpha 11 building on
	Linux again.

Affected files ...

.. //depot/projects/trustedbsd/openbsm/compat/strlcat.h#1 add
.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#15 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#15 (text+ko) ====

@@ -27,7 +27,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  *
- * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#14 $
+ * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#15 $
  */
 
 #include <bsm/libbsm.h>
@@ -38,6 +38,11 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include <config/config.h>
+#ifndef HAVE_STRLCAT
+#include <compat/strlcat.h>
+#endif
+
 /*
  * Parse the contents of the audit_control file to return the audit control
  * parameters.  These static fields are protected by 'mutex'.


More information about the trustedbsd-cvs mailing list