[rtems-libbsd commit] Add SIZE_T_MAX to <machine/rtems-bsd-user-space.h>

Sebastian Huber sebh at rtems.org
Mon Oct 24 06:14:18 UTC 2016


Module:    rtems-libbsd
Branch:    master
Commit:    0ba419717b884465a34241f106a71ffc5ec18267
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=0ba419717b884465a34241f106a71ffc5ec18267

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Oct 24 08:07:56 2016 +0200

Add SIZE_T_MAX to <machine/rtems-bsd-user-space.h>

---

 freebsd/contrib/pf/pfctl/pfctl_radix.c          | 3 ---
 freebsd/sbin/dhclient/privsep.c                 | 3 ---
 rtemsbsd/include/machine/rtems-bsd-user-space.h | 2 ++
 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 27e7b4b..cc5b0ac 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 d5198fa..7b68059 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 b57a3ff..ef7c592 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 */



More information about the vc mailing list