Changeset 4bd337d1bd56e5e4bc7fb3615cffd102e2cd1639

Show
Ignore:
Timestamp:
08/15/08 02:02:15 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1218765735 +0000
git-parent:

[8588fa4fce895b6710b5200bf4d2a5e0205e1b59]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1218765735 +0000
Message:

invert the logic, no functional change at all. Don't ask

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • configure.in

    re1b3535 r4bd337d  
    241241int main(void){sem_t s;return (0 != sem_init(&s,0,0));} 
    242242        ], 
    243         [AC_MSG_RESULT(yes)],  
     243        [ 
     244                AC_MSG_RESULT(yes) 
     245                AC_DEFINE(WORKING_SEM_INIT) 
     246        ],  
    244247        [ 
    245248                AC_MSG_RESULT(no) 
    246                 AC_DEFINE(BROKEN_SEM_INIT) 
    247249                AC_MSG_WARN([****** sem_init() is broken, I'll implement one myself.]) 
    248250        ] 
  • src/noit_config.h.in

    r9a2ae90 r4bd337d  
    7979#undef HAVE_UUID_UNPARSE_LOWER 
    8080#define IFS_CH '/' 
    81 #undef BROKEN_SEM_INIT 
     81#undef WORKING_SEM_INIT 
    8282 
    8383#ifdef HAVE_STRING_H 
  • src/utils/noit_sem.c

    r0d0bc57 r4bd337d  
    3939#include "utils/noit_sem.h" 
    4040 
    41 #ifdef BROKEN_SEM_INIT 
     41#ifndef WORKING_SEM_INIT 
    4242#include <pthread.h> 
    4343#include <errno.h> 
  • src/utils/noit_sem.h

    ra770666 r4bd337d  
    6767    \return 0 on success or -1 on failure 
    6868 */ 
    69 #ifdef BROKEN_SEM_INIT 
     69#ifndef WORKING_SEM_INIT 
    7070 
    7171#include <pthread.h> 
     
    9292#define sem_destroy noit_sem_destroy 
    9393 
    94 #else /* BROKEN_SEM_INIT */ 
     94#else /* WORKING_SEM_INIT */ 
    9595 
    9696#ifdef HAVE_SEMAPHORE_H