summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxreaddir/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxreaddir/test.c')
-rw-r--r--testsuites/psxtests/psxreaddir/test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxreaddir/test.c b/testsuites/psxtests/psxreaddir/test.c
index 0bdc186e5f..f8615dc578 100644
--- a/testsuites/psxtests/psxreaddir/test.c
+++ b/testsuites/psxtests/psxreaddir/test.c
@@ -48,6 +48,7 @@ int scandir ( const char *dirname,
#if defined(__rtems__)
#define d_type d_reclen
+#include <pmacros.h>
#endif
void printdir( DIR *directory )
@@ -495,6 +496,6 @@ int main(
test_across_mount();
printf( "\n\n*** END OF READDIR TEST ***\n" );
- exit(0);
+ rtems_test_exit(0);
}