summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/Makefile3
-rw-r--r--lib/libc/rpc/clnt_dg.c7
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index 2741113..8a0692b 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -72,6 +72,9 @@ CFLAGS+= -DNO_FLOATING_POINT
.if ${MK_NS_CACHING} != "no"
CFLAGS+= -DNS_CACHING
.endif
+.if defined(_FREEFALL_CONFIG)
+CFLAGS+=-D_FREEFALL_CONFIG
+.endif
.if defined(SYMVER_ENABLED)
VERSION_DEF=${.CURDIR}/Versions.def
diff --git a/lib/libc/rpc/clnt_dg.c b/lib/libc/rpc/clnt_dg.c
index 761cc65..27296ab 100644
--- a/lib/libc/rpc/clnt_dg.c
+++ b/lib/libc/rpc/clnt_dg.c
@@ -63,7 +63,14 @@ __FBSDID("$FreeBSD$");
#include "mt_misc.h"
+#ifdef _FREEFALL_CONFIG
+/*
+ * Disable RPC exponential back-off for FreeBSD.org systems.
+ */
+#define RPC_MAX_BACKOFF 1 /* second */
+#else
#define RPC_MAX_BACKOFF 30 /* seconds */
+#endif
static struct clnt_ops *clnt_dg_ops(void);
OpenPOWER on IntegriCloud