Date: Wed, 20 Sep 2006 14:33:09 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 106403 for review Message-ID: <200609201433.k8KEX99U031165@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=106403 Change 106403 by rwatson@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'.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609201433.k8KEX99U031165>