Use simple macro ifdef rather than APR versioning...
authorJim Jagielski <jim@apache.org>
Fri, 24 Jan 2014 20:24:36 +0000 (20:24 +0000)
committerJim Jagielski <jim@apache.org>
Fri, 24 Jan 2014 20:24:36 +0000 (20:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1561150 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index c542de63274c99fa71fd48f5dcec24e165a0c446..567b82138c898a8f33c6778ab7f5f049c3d5e03d 100644 (file)
@@ -49,7 +49,6 @@
 #include "mod_proxy.h"
 #include "ap_listen.h"
 #include "ap_provider.h"
-#include "apr_version.h"
 
 #include "mod_so.h" /* for ap_find_loaded_module_symbol */
 
@@ -4907,7 +4906,7 @@ static int core_pre_connection(conn_rec *c, void *csd)
     rv = apr_socket_opt_set(csd, APR_TCP_NODELAY, 1);
     if (rv != APR_SUCCESS
         && rv != APR_ENOTIMPL
-#if APR_VERSION_AT_LEAST(1,5,1)
+#ifdef APR_EOPNOTSUPP
         && rv != APR_EOPNOTSUPP
 #endif
         ) {