apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/dso/unix dso.c
Date Mon, 02 Jul 2001 20:17:12 GMT
trawick     01/07/02 13:17:12

  Modified:    dso/unix dso.c
  Log:
  include stdlib.h for malloc() and free() prototypes (Darwin)
  
  fix the DSO_USE_DYLD flavor of apr_dso_sym() so that it returns
  a predictable value on success (Darwin)
  
  Revision  Changes    Path
  1.41      +4 -1      apr/dso/unix/dso.c
  
  Index: dso.c
  ===================================================================
  RCS file: /home/cvs/apr/dso/unix/dso.c,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- dso.c	2001/04/29 21:37:17	1.40
  +++ dso.c	2001/07/02 20:17:11	1.41
  @@ -65,6 +65,9 @@
   #ifdef HAVE_STDDEF_H
   #include <stddef.h>
   #endif
  +#if APR_HAVE_STDLIB_H
  +#include <stdlib.h> /* malloc(), free() */
  +#endif
   #if APR_HAVE_STRING_H
   #include <string.h> /* for strerror() on HP-UX */
   #endif
  @@ -205,7 +208,7 @@
           handle->errormsg = "cannot resolve symbol";
   	return APR_EINIT;
       }
  -
  +    return APR_SUCCESS;
   #elif defined(DSO_USE_DLFCN)
   
   #if defined(DLSYM_NEEDS_UNDERSCORE)
  
  
  

Mime
View raw message