diff options
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r-- | cpukit/libcsupport/include/inttypes.h | 1 | ||||
-rw-r--r-- | cpukit/libcsupport/src/utsname.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/libcsupport/include/inttypes.h b/cpukit/libcsupport/include/inttypes.h index dad6c67c7d..87e1798f17 100644 --- a/cpukit/libcsupport/include/inttypes.h +++ b/cpukit/libcsupport/include/inttypes.h @@ -14,6 +14,7 @@ extern "C" { #endif #include <stdint.h> +#include <sys/_inttypes.h> #ifdef __cplusplus } diff --git a/cpukit/libcsupport/src/utsname.c b/cpukit/libcsupport/src/utsname.c index cc114434bf..6ba6c196c0 100644 --- a/cpukit/libcsupport/src/utsname.c +++ b/cpukit/libcsupport/src/utsname.c @@ -15,7 +15,7 @@ #include <rtems/system.h> #include <rtems/score/object.h> -#include <rtems/sptables.h> +#include <inttypes.h> #include <rtems/seterr.h> @@ -41,7 +41,7 @@ int uname( strcpy( name->sysname, "RTEMS" ); - sprintf( name->nodename, "Node %d", _Objects_Local_node ); + sprintf( name->nodename, "Node %" PRId32, _Objects_Local_node ); strcpy( name->release, RTEMS_VERSION ); |