summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2012-10-19 18:10:05 +0000
committerStefan Fritsch <sf@apache.org>2012-10-19 18:10:05 +0000
commited1efc0aa392177af065f1624d3f739639324280 (patch)
tree6734fc70e6f315b76197483f5da424fb2c43525d /build
parentd8a5125e780a2e8b3d3dc7d2d98a1f021b742282 (diff)
downloadapr-ed1efc0aa392177af065f1624d3f739639324280.tar.gz
Fix Linux 3.x detection
Submitted by: Gilles Espinasse <g esp free fr> PR: 54001 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1400200 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r--build/apr_hints.m410
1 files changed, 1 insertions, 9 deletions
diff --git a/build/apr_hints.m4 b/build/apr_hints.m4
index 62b7132c4..85cc296bd 100644
--- a/build/apr_hints.m4
+++ b/build/apr_hints.m4
@@ -119,15 +119,7 @@ dnl # Not a problem in 10.20. Otherwise, who knows?
APR_ADDTO(CPPFLAGS, [-DHPUX -D_REENTRANT])
;;
*-linux*)
- case `uname -r` in
- 2.* ) APR_ADDTO(CPPFLAGS, [-DLINUX=2])
- ;;
- 1.* ) APR_ADDTO(CPPFLAGS, [-DLINUX=1])
- ;;
- * )
- ;;
- esac
- APR_ADDTO(CPPFLAGS, [-D_REENTRANT -D_GNU_SOURCE])
+ APR_ADDTO(CPPFLAGS, [-DLINUX -D_REENTRANT -D_GNU_SOURCE])
;;
*-lynx-lynxos)
APR_ADDTO(CPPFLAGS, [-D__NO_INCLUDE_WARN__ -DLYNXOS])