summaryrefslogtreecommitdiffstats
path: root/xlators/features/glupy/src/glupy
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2015-05-07 20:28:11 +0200
committerVijay Bellur <vbellur@redhat.com>2015-05-07 11:46:47 -0700
commit865aa4ebdd71d39f8e8ae59b40d993edb4a62708 (patch)
tree18b7c8d59d8050a4e9a75a87ab706ad612128b9d /xlators/features/glupy/src/glupy
parent7f950ed3ae4f99542ba4bbabec5fc1a86850a528 (diff)
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@netbsd.org> Reviewed-on: http://review.gluster.org/10652 Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Tested-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/features/glupy/src/glupy')
0 files changed, 0 insertions, 0 deletions