git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7696
e03df62e-2008-0410-955e-
edbf42e46eb7
{
# Suggestion from nenolod, weed out odd systems which have glibc built
# against 2.4 kernels (ick)
-
+ my $kernel_arch = `uname -p`;
+ chomp($kernel_arch);
$libcv = 0.0;
$kernelv = 0.0;
- open (FH,"/lib/libc.so.6|") or $has_epoll = 0;
+ if ($kernel_arch =~ /x86_64/) {
+ open (FH,"/lib64/libc.so.6|") or $has_epoll = 0;
+ }
+ else {
+ open (FH,"/lib/libc.so.6|") or $has_epoll = 0;
+ }
if ($has_epoll)
{
while (chomp($line = <FH>))