summaryrefslogtreecommitdiff
path: root/acconfig.h
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2000-09-22 11:37:07 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2000-09-22 11:37:07 +0000
commit8610a629dee79d91188f0352f62db56076c1b6d3 (patch)
tree672ba8f18bac9b6a612cf55659d54aeca2fab91c /acconfig.h
parent829c605b5835b32127f647bb27541d6e6c24086a (diff)
downloadlibapr-8610a629dee79d91188f0352f62db56076c1b6d3.tar.gz
Provide a socklen_t to the user of APR as a portability aid. Some
systems have unsigned sockaddr len parameters; others have signed. When passing the length by address (as to accept()) a warning is generated if the sign is not correct. This patch assumes that, if no native socklen_t is provided, apr_socklen_t is always signed; that can be easily tweaked for certain platforms later. Inside APR, apr_socklen_t is only used currently in the Unix implementation. Submitted by: Victor J. Orlikowski <v.j.orlikowski@gte.net> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60538 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'acconfig.h')
-rw-r--r--acconfig.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/acconfig.h b/acconfig.h
index 8c8404514..e0d77f038 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -41,10 +41,6 @@
/* Make sure we have ssize_t defined to be something */
#undef ssize_t
-#if !defined(HAVE_SOCKLEN_T)
-typedef int socklen_t;
-#endif
-
/* switch this on if we have a BeOS version below BONE */
#if BEOS && !HAVE_BONE_VERSION
#define BEOS_R5 1