[PATCH 2/4] network: Align with Newlib type definitions
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed May 11 13:19:56 UTC 2016
---
cpukit/libnetworking/rtems/rtems_bsdnet_internal.h | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
index b08d674..7ede2c6 100644
--- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
+++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
@@ -10,6 +10,7 @@
#ifndef _RTEMS_RTEMS_BSDNET_INTERNAL_H
#define _RTEMS_RTEMS_BSDNET_INTERNAL_H
+#include <sys/_types.h>
#include <rtems.h>
#include <rtems/fs.h>
#include <rtems/score/timecounter.h>
@@ -18,10 +19,10 @@
extern "C" {
#endif
-typedef unsigned int vm_offset_t;
-typedef long long vm_ooffset_t;
-typedef unsigned int vm_pindex_t;
-typedef unsigned int vm_size_t;
+typedef __uintptr_t vm_offset_t;
+typedef __intptr_t vm_ooffset_t;
+typedef __uintptr_t vm_pindex_t;
+typedef __uintptr_t vm_size_t;
#define _BSD_OFF_T_ int32_t
#define _BSD_PID_T_ rtems_id
--
1.8.4.5
More information about the devel
mailing list