FreeBSD and latest scons

This commit is contained in:
quackerd 2023-07-31 23:09:41 +02:00
parent d65c6ef7c2
commit bdd58e5ff8
4 changed files with 13 additions and 10 deletions

View File

@ -1,4 +1,5 @@
#include <netinet/tcp.h>
#include <netinet/in.h>
#include <event2/buffer.h>
#include <event2/bufferevent.h>

View File

@ -1,4 +1,5 @@
#include <netinet/tcp.h>
#include <netinet/in.h>
#include <event2/buffer.h>
#include <event2/bufferevent.h>

View File

@ -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 <event2/event.h>', "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'):

View File

@ -8,6 +8,7 @@
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include <netinet/in.h>
#include <queue>
#include <string>