make coreclr buildable on FreeBSD again (#15480)
authorTomas Weinfurt <tweinfurt@yahoo.com>
Tue, 12 Dec 2017 22:22:10 +0000 (14:22 -0800)
committerSean Gillespie <segilles@microsoft.com>
Tue, 12 Dec 2017 22:22:10 +0000 (14:22 -0800)
* small changes to get coreclr building on FreeBSD again

* include <stdlib.h> to get prototype for rand()

* remove extra line

* include copmmon.h instead of stdlib.h

src/gc/unix/events.cpp
src/gc/unix/gcenv.unix.cpp

index 694b9ba..0d99220 100644 (file)
@@ -10,6 +10,7 @@
 #include <pthread.h>
 #include <errno.h>
 #include "config.h"
+#include "common.h"
 
 #include "gcenv.structs.h"
 #include "gcenv.base.h"
index e9dc07a..7bc6a37 100644 (file)
@@ -8,7 +8,9 @@
 #include <memory>
 #include <pthread.h>
 #include <signal.h>
+
 #include "config.h"
+#include "common.h"
 
 #include "gcenv.structs.h"
 #include "gcenv.base.h"