Quellcode durchsuchen

Fixed linux compile error.

woollybah vor 5 Jahren
Ursprung
Commit
4e345f352f
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      threads.mod/threads.c

+ 2 - 2
threads.mod/threads.c

@@ -223,7 +223,7 @@ int threads_TimedWaitCond(pthread_cond_t *cond,bb_mutex_t *mutex, int millisecs)
 
 	if (res == 0) {
 		return 0;
-	} else if (res == -1 && errno = ETIMEDOUT) {
+	} else if (res == -1 && errno == ETIMEDOUT) {
 		return 1;
 	}
 
@@ -252,7 +252,7 @@ int threads_TimedWaitSemaphore( bb_sem_t *sem, int millisecs ){
 	
 	if (res == 0) {
 		return 0;
-	} else if (res == -1 && errno = ETIMEDOUT) {
+	} else if (res == -1 && errno == ETIMEDOUT) {
 		return 1;
 	}