summaryrefslogtreecommitdiff
path: root/network_io
diff options
context:
space:
mode:
authorGreg Stein <gstein@apache.org>2000-12-03 11:05:45 +0000
committerGreg Stein <gstein@apache.org>2000-12-03 11:05:45 +0000
commit0232eefab2a2546a7bcd01240c7c7bfbbf071ddc (patch)
tree6fd717702ab87ef1890add3f4702e36ceab932c3 /network_io
parent804cc7188feee33fb36c7a93c439fe1358e51fb5 (diff)
downloadapr-0232eefab2a2546a7bcd01240c7c7bfbbf071ddc.tar.gz
Fix how sa_common.c gets included. Leave a note explaining the magic.
Submitted by: Sam TH <sam@uchicago.edu> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60863 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io')
-rw-r--r--network_io/unix/sockaddr.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/network_io/unix/sockaddr.c b/network_io/unix/sockaddr.c
index bebc07825..e97132661 100644
--- a/network_io/unix/sockaddr.c
+++ b/network_io/unix/sockaddr.c
@@ -68,5 +68,12 @@ static apr_status_t get_local_addr(apr_socket_t *sock)
}
}
-/* included here to allow us to use local_addr */
-#include "sa_common.c"
+/* included here to allow us to use get_local_addr().
+
+ NOTE: this file (sockaddr.c) can be included from other directories. If
+ we left the following include as just "sa_common.c", then it would be
+ relative to the directory where sockaddr.c was included (wrong!). To
+ fix that problem, this include specifically refers to the unix directory
+ to include sa_common.c
+ */
+#include "../unix/sa_common.c"