[Bugs] [Bug 1129939] NetBSD port

bugzilla at redhat.com bugzilla at redhat.com
Thu May 7 18:46:59 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1129939



--- Comment #333 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/10652 committed in master by Vijay Bellur
(vbellur at redhat.com) 
------
commit 865aa4ebdd71d39f8e8ae59b40d993edb4a62708
Author: Emmanuel Dreyfus <manu at netbsd.org>
Date:   Thu May 7 20:28:11 2015 +0200

    Restore build on non Linux systems

    This change broke the build on NetBSD, FreeBSD, and MacOS X:
    http://review.gluster.org/10526/

    We restore the build with two fixes:
    - Use POSIX-compliant sysconf(_SC_NPROCESSORS_ONLN) to get the
      number of processors, instead of Linux specific get_nprocs().
      That let us remove Linux-specific #include <sys/sysinfo.h>
    - Only define MAX() if it is not already defined. NetBSD defines
      it in <sys/param.h> which is already included

    BUG: 1129939
    Change-Id: I62341c670598670e47ea2f69ab94864f96588b18
    Signed-off-by: Emmanuel Dreyfus <manu at netbsd.org>
    Reviewed-on: http://review.gluster.org/10652
    Reviewed-by: Kaleb KEITHLEY <kkeithle at redhat.com>
    Tested-by: Vijay Bellur <vbellur at redhat.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Bugs mailing list