You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by gs...@locus.apache.org on 2000/12/03 12:05:46 UTC

cvs commit: apr/network_io/unix sockaddr.c

gstein      00/12/03 03:05:46

  Modified:    network_io/unix sockaddr.c
  Log:
  Fix how sa_common.c gets included. Leave a note explaining the magic.
  
  Submitted by: Sam TH <sa...@uchicago.edu>
  
  Revision  Changes    Path
  1.26      +9 -2      apr/network_io/unix/sockaddr.c
  
  Index: sockaddr.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/sockaddr.c,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -u -r1.25 -r1.26
  --- sockaddr.c	2000/12/01 18:47:31	1.25
  +++ sockaddr.c	2000/12/03 11:05:45	1.26
  @@ -68,5 +68,12 @@
       }
   }
   
  -/* 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"