summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-10-24 08:07:56 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-10-24 08:11:24 +0200
commit0ba419717b884465a34241f106a71ffc5ec18267 (patch)
treef2fab26fb2213f1052bdfcb0aed6d051c0e2181a
parentProvide CLOCK_MONOTONIC_FAST (diff)
downloadrtems-libbsd-0ba419717b884465a34241f106a71ffc5ec18267.tar.bz2
Add SIZE_T_MAX to <machine/rtems-bsd-user-space.h>
-rw-r--r--freebsd/contrib/pf/pfctl/pfctl_radix.c3
-rw-r--r--freebsd/sbin/dhclient/privsep.c3
-rw-r--r--rtemsbsd/include/machine/rtems-bsd-user-space.h2
3 files changed, 2 insertions, 6 deletions
diff --git a/freebsd/contrib/pf/pfctl/pfctl_radix.c b/freebsd/contrib/pf/pfctl/pfctl_radix.c
index 27e7b4bd..cc5b0acd 100644
--- a/freebsd/contrib/pf/pfctl/pfctl_radix.c
+++ b/freebsd/contrib/pf/pfctl/pfctl_radix.c
@@ -51,9 +51,6 @@ __FBSDID("$FreeBSD$");
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
-#ifdef __rtems__
-#define SIZE_T_MAX SIZE_MAX
-#endif /* __rtems__ */
#include <err.h>
#include "pfctl.h"
diff --git a/freebsd/sbin/dhclient/privsep.c b/freebsd/sbin/dhclient/privsep.c
index d5198fa2..7b68059a 100644
--- a/freebsd/sbin/dhclient/privsep.c
+++ b/freebsd/sbin/dhclient/privsep.c
@@ -23,9 +23,6 @@ __FBSDID("$FreeBSD$");
#include "dhcpd.h"
#include "privsep.h"
-#ifdef __rtems__
-#define SIZE_T_MAX SIZE_MAX
-#endif /* __rtems__ */
struct buf *
buf_open(size_t len)
diff --git a/rtemsbsd/include/machine/rtems-bsd-user-space.h b/rtemsbsd/include/machine/rtems-bsd-user-space.h
index b57a3ff9..ef7c592a 100644
--- a/rtemsbsd/include/machine/rtems-bsd-user-space.h
+++ b/rtemsbsd/include/machine/rtems-bsd-user-space.h
@@ -61,6 +61,8 @@
#define CLOCK_MONOTONIC_FAST CLOCK_MONOTONIC
#endif
+#define SIZE_T_MAX SIZE_MAX
+
__BEGIN_DECLS
/* FIXME: Add to Newlib */