From owner-svn-src-projects@FreeBSD.ORG Tue Aug 24 20:45:21 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77C1E1065696; Tue, 24 Aug 2010 20:45:21 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 676398FC08; Tue, 24 Aug 2010 20:45:21 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o7OKjLjg087321; Tue, 24 Aug 2010 20:45:21 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o7OKjLQk087319; Tue, 24 Aug 2010 20:45:21 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201008242045.o7OKjLQk087319@svn.freebsd.org> From: Jeff Roberson Date: Tue, 24 Aug 2010 20:45:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r211772 - projects/ofed/head/contrib/ofed/libmlx4/src X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 20:45:21 -0000 Author: jeff Date: Tue Aug 24 20:45:21 2010 New Revision: 211772 URL: http://svn.freebsd.org/changeset/base/211772 Log: - Use __LP64__ as a mostly correct check for 64bit architectures rather than SIZEOF_LONG. We can't simply use sizeof(long) here as that is not available to the preprocessor. Sponsored by: Isilon Systems, iX Systems, and Panasas Modified: projects/ofed/head/contrib/ofed/libmlx4/src/doorbell.h Modified: projects/ofed/head/contrib/ofed/libmlx4/src/doorbell.h ============================================================================== --- projects/ofed/head/contrib/ofed/libmlx4/src/doorbell.h Tue Aug 24 20:41:05 2010 (r211771) +++ projects/ofed/head/contrib/ofed/libmlx4/src/doorbell.h Tue Aug 24 20:45:21 2010 (r211772) @@ -33,8 +33,7 @@ #ifndef DOORBELL_H #define DOORBELL_H -#if SIZEOF_LONG == 8 - +#ifdef __LP64__ #if __BYTE_ORDER == __LITTLE_ENDIAN # define MLX4_PAIR_TO_64(val) ((uint64_t) val[1] << 32 | val[0]) #elif __BYTE_ORDER == __BIG_ENDIAN