Permalink
Browse files

Fix EBUSY constant definition

  • Loading branch information...
1 parent 964fb68 commit a49b5b36ecbbd8c562e5be454ac05130330a7d4d @dmitryvk dmitryvk committed May 1, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −1 src/runtime/gencgc.c
  2. +2 −1 src/runtime/pthreads_win32.h
View
@@ -368,7 +368,7 @@ void gc_unlock_mutexes()
pthread_mutex_unlock(&allocation_lock);
pthread_mutex_unlock(&free_pages_lock);
}
-
+
/* Count the number of pages which are write-protected within the
* given generation. */
static long
@@ -5,6 +5,8 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
+#include <errno.h>
+
/* 0 - Misc */
void pthreads_win32_init();
@@ -100,7 +102,6 @@ int pthread_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex, const
int pthread_cond_wait(pthread_cond_t * cond, pthread_mutex_t * mutex);
#define ETIMEDOUT 123 //Something
-#define EBUSY 321 //Something
int sched_yield();

0 comments on commit a49b5b3

Please sign in to comment.