apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject cvs commit: apr configure.in
Date Thu, 27 Mar 2003 20:34:30 GMT
jim         2003/03/27 12:34:30

  Modified:    .        configure.in
  Log:
  At configure time disable Posix sem for
  those platforms where we can't/shouldn't shove a sem_t * into
  an int -- bluntly reported by Joe Orton
  
  Revision  Changes    Path
  1.521     +2 -0      apr/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apr/configure.in,v
  retrieving revision 1.520
  retrieving revision 1.521
  diff -u -r1.520 -r1.521
  --- configure.in	24 Mar 2003 20:13:36 -0000	1.520
  +++ configure.in	27 Mar 2003 20:34:30 -0000	1.521
  @@ -1422,6 +1422,8 @@
       sem_t *psem;
       const char *sem_name = "/apr_autoconf";
   
  +    if (sizeof(int) < sizeof(sem_t *))
  +        exit(1);
       psem = sem_open(sem_name, O_CREAT, 0644, 1);
       if (psem == (sem_t *)SEM_FAILED) {
   	exit(1);
  
  
  

Mime
View raw message