Skip to content

Commit 79befb1

Browse files
committed
Minor nits for Mac.
1 parent 24a7997 commit 79befb1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

deprecated_test/eval.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <map>
2424
#include <sstream>
2525
#include <vector>
26+
#include <random>
2627

2728
#include "../fncas/fncas.h"
2829

@@ -54,7 +55,7 @@ struct action {
5455
limit_seconds = quantity < 0 ? -quantity : 1e12;
5556
this->sout = sout;
5657
this->serr = serr;
57-
do_run();
58+
return do_run();
5859
}
5960
virtual bool do_run() = 0;
6061
};

fncas/node.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838

3939
#include "base.h"
4040

41+
#ifndef BRICKS_HAS_THREAD_LOCAL
42+
#include <pthread.h> // To emulate `thread_local` via `pthread_*`.
43+
#endif
44+
4145
// Admittedly, `sqr()` is kind of helpful in machine learning. -- D.K.
4246
inline fncas::fncas_value_type sqr(fncas::fncas_value_type x) { return x * x; }
4347

0 commit comments

Comments
 (0)