apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@locus.apache.org
Subject cvs commit: apr/network_io/unix sockaddr.c
Date Sun, 03 Dec 2000 11:05:46 GMT
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 <sam@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"
  
  
  

Mime
View raw message