From owner-p4-projects@FreeBSD.ORG Thu Apr 16 12:45:38 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 1206E1065779; Thu, 16 Apr 2009 12:45:38 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7B4B1065775 for ; Thu, 16 Apr 2009 12:45:37 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 92D6D8FC16 for ; Thu, 16 Apr 2009 12:45:37 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n3GCjbC7093382 for ; Thu, 16 Apr 2009 12:45:37 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n3GCjb1d093380 for perforce@freebsd.org; Thu, 16 Apr 2009 12:45:37 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Thu, 16 Apr 2009 12:45:37 GMT Message-Id: <200904161245.n3GCjb1d093380@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 160694 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2009 12:45:40 -0000 http://perforce.freebsd.org/chv.cgi?CH=160694 Change 160694 by rwatson@rwatson_cinnamon on 2009/04/16 12:45:36 Don't use BSD-specific st_ctimespec.tv_sec when portable st_ctime will do. Fixes the Linux build for bsm_control.c. Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#33 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#33 (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#32 $ + * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#33 $ */ #include @@ -300,8 +300,8 @@ */ if (fstat(fileno(fp), &sbuf) < 0) goto closefp; - if (lastctime != sbuf.st_ctimespec.tv_sec) { - lastctime = sbuf.st_ctimespec.tv_sec; + if (lastctime != sbuf.st_ctime) { + lastctime = sbuf.st_ctime; closefp: fclose(fp); fp = NULL;