From bdd58e5ff8e34f1a223d179e0c706880c3adbbb6 Mon Sep 17 00:00:00 2001 From: quackerd Date: Mon, 31 Jul 2023 23:09:41 +0200 Subject: [PATCH] FreeBSD and latest scons --- Connection.cc | 1 + Protocol.cc | 1 + SConstruct | 20 ++++++++++---------- mutilate.cc | 1 + 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/Connection.cc b/Connection.cc index ea02899..18f344a 100644 --- a/Connection.cc +++ b/Connection.cc @@ -1,4 +1,5 @@ #include +#include #include #include diff --git a/Protocol.cc b/Protocol.cc index 6d346b8..e61e66e 100644 --- a/Protocol.cc +++ b/Protocol.cc @@ -1,4 +1,5 @@ #include +#include #include #include diff --git a/SConstruct b/SConstruct index 57d0054..4689773 100644 --- a/SConstruct +++ b/SConstruct @@ -16,20 +16,20 @@ if sys.platform == 'darwin': conf = env.Configure(config_h = "config.h") conf.Define("__STDC_FORMAT_MACROS") if not conf.CheckCXX(): - print "A compiler with C++11 support is required." - Exit(1) -print "Checking for gengetopt...", + print("A compiler with C++11 support is required.") + sys.exit(1) +print("Checking for gengetopt...",) if env.Execute("@which gengetopt &> /dev/null"): - print "not found (required)" - Exit(1) -else: print "found" + print("not found (required)") + sys.exit(1) +else: print("found") if not conf.CheckLibWithHeader("event", "event2/event.h", "C++"): - print "libevent required" - Exit(1) + print("libevent required") + sys.exit(1) conf.CheckDeclaration("EVENT_BASE_FLAG_PRECISE_TIMER", '#include ', "C++") if not conf.CheckLibWithHeader("pthread", "pthread.h", "C++"): - print "pthread required" - Exit(1) + print("pthread required") + sys.exit(1) conf.CheckLib("rt", "clock_gettime", language="C++") conf.CheckLibWithHeader("zmq", "zmq.hpp", "C++") if not conf.CheckFunc('pthread_barrier_init'): diff --git a/mutilate.cc b/mutilate.cc index 426fd05..c1f35f5 100644 --- a/mutilate.cc +++ b/mutilate.cc @@ -8,6 +8,7 @@ #include #include #include +#include #include #include