mirror of
https://git.freebsd.org/ports.git
synced 2025-07-03 18:39:16 -04:00
37 lines
1.6 KiB
C++
37 lines
1.6 KiB
C++
--- fdbserver/fdbserver.actor.cpp.orig 2018-08-01 01:25:10 UTC
|
|
+++ fdbserver/fdbserver.actor.cpp
|
|
@@ -60,7 +60,7 @@
|
|
#define BOOST_DATE_TIME_NO_LIB
|
|
#include <boost/interprocess/managed_shared_memory.hpp>
|
|
|
|
-#ifdef __linux__
|
|
+#if defined(__linux__) || defined(__FreeBSD__)
|
|
#include <execinfo.h>
|
|
#include <signal.h>
|
|
#ifdef ALLOC_INSTRUMENTATION
|
|
@@ -73,6 +73,7 @@
|
|
#endif
|
|
|
|
#include "flow/SimpleOpt.h"
|
|
+#include <fstream>
|
|
|
|
enum {
|
|
OPT_CONNFILE, OPT_SEEDCONNFILE, OPT_SEEDCONNSTRING, OPT_ROLE, OPT_LISTEN, OPT_PUBLICADDR, OPT_DATAFOLDER, OPT_LOGFOLDER, OPT_PARENTPID, OPT_NEWCONSOLE, OPT_NOBOX, OPT_TESTFILE, OPT_RESTARTING, OPT_RANDOMSEED, OPT_KEY, OPT_MEMLIMIT, OPT_STORAGEMEMLIMIT, OPT_MACHINEID, OPT_DCID, OPT_MACHINE_CLASS, OPT_BUGGIFY, OPT_VERSION, OPT_CRASHONERROR, OPT_HELP, OPT_NETWORKIMPL, OPT_NOBUFSTDOUT, OPT_BUFSTDOUTERR, OPT_TRACECLOCK, OPT_NUMTESTERS, OPT_DEVHELP, OPT_ROLLSIZE, OPT_MAXLOGS, OPT_MAXLOGSSIZE, OPT_KNOB, OPT_TESTSERVERS, OPT_TEST_ON_SERVERS, OPT_METRICSCONNFILE, OPT_METRICSPREFIX,
|
|
@@ -351,7 +352,7 @@ public:
|
|
throw platform_error();
|
|
}
|
|
permission.set_permissions( &sa );
|
|
-#elif (defined(__linux__) || defined(__APPLE__))
|
|
+#elif (defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__))
|
|
// There is nothing to do here, since the default permissions are fine
|
|
#else
|
|
#error Port me!
|
|
@@ -361,7 +362,7 @@ public:
|
|
virtual ~WorldReadablePermissions() {
|
|
#ifdef _WIN32
|
|
LocalFree( sa.lpSecurityDescriptor );
|
|
-#elif (defined(__linux__) || defined(__APPLE__))
|
|
+#elif (defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__))
|
|
// There is nothing to do here, since the default permissions are fine
|
|
#else
|
|
#error Port me!
|