httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject cvs commit: apache-1.3/src/os/unix os.c
Date Thu, 02 May 2002 13:28:46 GMT
jim         02/05/02 06:28:46

  Modified:    src/os/unix os.c
  Log:
  OK. This is admittedly anal. But the whole idea behind cpp macros
  is to avoid things like "we know NSLINKMODULE_OPTION_NONE is 0"
  and making such shortcuts as this. This makes it clear what exactly
  we are setting, and though admittedly verbose, the tradeoff of a
  few bytes of source is worth it :)
  
  Revision  Changes    Path
  1.25      +4 -2      apache-1.3/src/os/unix/os.c
  
  Index: os.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/os/unix/os.c,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- os.c	1 May 2002 22:51:20 -0000	1.24
  +++ os.c	2 May 2002 13:28:46 -0000	1.25
  @@ -111,8 +111,10 @@
       if (NSCreateObjectFileImageFromFile(path, &image) !=
           NSObjectFileImageSuccess)
           return NULL;
  -#if defined(NSLINKMODULE_OPTION_RETURN_ON_ERROR)
  -    handle = NSLinkModule(image, path, NSLINKMODULE_OPTION_RETURN_ON_ERROR);
  +#if defined(NSLINKMODULE_OPTION_RETURN_ON_ERROR) && defined(NSLINKMODULE_OPTION_NONE)
  +    handle = NSLinkModule(image, path,
  +                          NSLINKMODULE_OPTION_RETURN_ON_ERROR |
  +                          NSLINKMODULE_OPTION_NONE);
   #else
       handle = NSLinkModule(image, path, FALSE);
   #endif
  
  
  

Mime
View raw message