[rtems commit] psxmsgq01/init.c: Disable signal usage when POSIX disabled
Joel Sherrill
joel at rtems.org
Fri Nov 30 14:37:05 UTC 2018
Module: rtems
Branch: master
Commit: e54a266edef25dfa195934b61184276a82cd6ac6
Changeset: http://git.rtems.org/rtems/commit/?id=e54a266edef25dfa195934b61184276a82cd6ac6
Author: Joel Sherrill <joel at rtems.org>
Date: Fri Nov 30 08:33:45 2018 -0600
psxmsgq01/init.c: Disable signal usage when POSIX disabled
closes #3626.
---
testsuites/psxtests/psxmsgq01/init.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testsuites/psxtests/psxmsgq01/init.c b/testsuites/psxtests/psxmsgq01/init.c
index 50a370d..d22238d 100644
--- a/testsuites/psxtests/psxmsgq01/init.c
+++ b/testsuites/psxtests/psxmsgq01/init.c
@@ -910,6 +910,7 @@ void wait_for_signal(
int expect_signal
)
{
+#if defined(RTEMS_POSIX_API)
siginfo_t siginfo;
int status;
struct timespec timeout;
@@ -936,6 +937,7 @@ void wait_for_signal(
fatal_int_service_status( signo, -1, "error return status");
fatal_posix_service_status( errno, EAGAIN, "errno EAGAIN");
}
+#endif
}
void verify_notify(void)
More information about the vc
mailing list