Revision 927fa909 qemu-thread-posix.c

b/qemu-thread-posix.c
122 122
{
123 123
    int rc;
124 124

  
125
#if defined(__OpenBSD__) || defined(__APPLE__) || defined(__NetBSD__)
125
#if defined(__APPLE__) || defined(__NetBSD__)
126 126
    rc = pthread_mutex_init(&sem->lock, NULL);
127 127
    if (rc != 0) {
128 128
        error_exit(rc, __func__);
......
147 147
{
148 148
    int rc;
149 149

  
150
#if defined(__OpenBSD__) || defined(__APPLE__) || defined(__NetBSD__)
150
#if defined(__APPLE__) || defined(__NetBSD__)
151 151
    rc = pthread_cond_destroy(&sem->cond);
152 152
    if (rc < 0) {
153 153
        error_exit(rc, __func__);
......
168 168
{
169 169
    int rc;
170 170

  
171
#if defined(__OpenBSD__) || defined(__APPLE__) || defined(__NetBSD__)
171
#if defined(__APPLE__) || defined(__NetBSD__)
172 172
    pthread_mutex_lock(&sem->lock);
173 173
    if (sem->count == INT_MAX) {
174 174
        rc = EINVAL;
......
206 206
    int rc;
207 207
    struct timespec ts;
208 208

  
209
#if defined(__OpenBSD__) || defined(__APPLE__) || defined(__NetBSD__)
209
#if defined(__APPLE__) || defined(__NetBSD__)
210 210
    compute_abs_deadline(&ts, ms);
211 211
    pthread_mutex_lock(&sem->lock);
212 212
    --sem->count;
......
248 248

  
249 249
void qemu_sem_wait(QemuSemaphore *sem)
250 250
{
251
#if defined(__OpenBSD__) || defined(__APPLE__) || defined(__NetBSD__)
251
#if defined(__APPLE__) || defined(__NetBSD__)
252 252
    pthread_mutex_lock(&sem->lock);
253 253
    --sem->count;
254 254
    while (sem->count < 0) {

Also available in: Unified diff