apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/include/arch/unix locks.h
Date Tue, 26 Jun 2001 00:22:10 GMT
trawick     01/06/25 17:22:09

  Modified:    .        configure.in
               include/arch/unix locks.h
  Log:
  Fix the check for flock() so we don't get confused on AIX.
  
  Instead of checking for the presence of <sys/file.h>, really
  check for the function.
  
  (I see flock() in the man pages but ld can't find it.  At least
  APR builds okay now.)
  
  Revision  Changes    Path
  1.316     +1 -1      apr/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apr/configure.in,v
  retrieving revision 1.315
  retrieving revision 1.316
  diff -u -r1.315 -r1.316
  --- configure.in	2001/06/16 01:13:34	1.315
  +++ configure.in	2001/06/26 00:22:06	1.316
  @@ -907,7 +907,7 @@
   dnl #----------------------------- Checking for Locking Characteristics 
   echo $ac_n "${nl}Checking for Locking...${nl}"
   
  -AC_CHECK_FUNCS(semget semctl)
  +AC_CHECK_FUNCS(semget semctl flock)
   
   # It's stupid, but not all platforms have union semun, even those that need it.
   AC_MSG_CHECKING(for union semun in sys/sem.h)
  
  
  
  1.32      +1 -1      apr/include/arch/unix/locks.h
  
  Index: locks.h
  ===================================================================
  RCS file: /home/cvs/apr/include/arch/unix/locks.h,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- locks.h	2001/06/25 18:53:34	1.31
  +++ locks.h	2001/06/26 00:22:08	1.32
  @@ -123,7 +123,7 @@
   #define APR_HAS_FCNTL_SERIALIZE        0
   #endif
   
  -#if defined(HAVE_SYS_FILE_H) && defined(HAVE_LOCK_EX)
  +#if defined(HAVE_FLOCK) && defined(HAVE_LOCK_EX)
   #define APR_HAS_FLOCK_SERIALIZE        1
   extern const apr_unix_lock_methods_t apr_unix_flock_methods;
   #else
  
  
  

Mime
View raw message