From 0232eefab2a2546a7bcd01240c7c7bfbbf071ddc Mon Sep 17 00:00:00 2001 From: Greg Stein Date: Sun, 3 Dec 2000 11:05:45 +0000 Subject: Fix how sa_common.c gets included. Leave a note explaining the magic. Submitted by: Sam TH git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60863 13f79535-47bb-0310-9956-ffa450edef68 --- network_io/unix/sockaddr.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'network_io') 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" -- cgit v1.2.1