[Bugs] [Bug 1212676] NetBSD port
bugzilla at redhat.com
bugzilla at redhat.com
Thu May 7 18:52:22 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1212676
--- Comment #27 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/10653 committed in release-3.7 by Vijay
Bellur (vbellur at redhat.com)
------
commit 6f8f47b6cbfbe96bc1324d836ed4baeab112a2f2
Author: Emmanuel Dreyfus <manu at netbsd.org>
Date: Thu May 7 20:36:24 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
Backport of: I62341c670598670e47ea2f69ab94864f96588b18
BUG: 1212676
Signed-off-by: Emmanuel Dreyfus <manu at netbsd.org>
Change-Id: I0f098153e76954bb85b5dca3f054a069e31dd94c
Reviewed-on: http://review.gluster.org/10653
Reviewed-by: Shyamsundar Ranganathan <srangana at redhat.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle at redhat.com>
Tested-by: Vijay Bellur <vbellur at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=YMdgTQMb1t&a=cc_unsubscribe
More information about the Bugs
mailing list