Skip to content

Commit

Permalink
fixed the linux kernel-version detection logic in the makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Guzzo committed Jul 3, 2014
1 parent 595ab1c commit 5cdc564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ objects:
elif [ "$$UNAME" = "Linux" ]; then \
KERNEL_VERSION=`uname -r | cut -d- -f1`; \
MIN_VERSION=2.6.27; \
SMALLER_VERSION=`echo "$$KERNEL_VERSION\n$$MIN_VERSION" | sort -V | head -1`; \
if [ "$$SMALLER_VERSION" = "$$MIN_VERSION" ]; then \
SMALLER_VERSION=`echo "$$KERNEL_VERSION$$MIN_VERSION" | sort -V | head -1`; \
if [ "$$SMALLER_VERSION" != "$$MIN_VERSION" ]; then \
PLATFORM_CFLAGS="-DHAVE_EPOLL"; \
fi; \
fi; \
Expand Down

0 comments on commit 5cdc564

Please sign in to comment.