summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libmisc/uuid/gen_uuid.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/libmisc/uuid/gen_uuid.c b/cpukit/libmisc/uuid/gen_uuid.c
index 3ca75a08ce..71b8a569bb 100644
--- a/cpukit/libmisc/uuid/gen_uuid.c
+++ b/cpukit/libmisc/uuid/gen_uuid.c
@@ -165,6 +165,9 @@ static int get_random_fd(void)
if (fd >= 0) {
i = fcntl(fd, F_GETFD);
if (i >= 0)
+ #ifdef __rtems__
+ (void)
+ #endif
fcntl(fd, F_SETFD, i | FD_CLOEXEC);
}
#endif
@@ -426,6 +429,9 @@ try_again:
}
rewind(state_f);
fl.l_type = F_UNLCK;
+ #ifdef __rtems__
+ (void)
+ #endif
fcntl(state_fd, F_SETLK, &fl);
}