aboutsummaryrefslogtreecommitdiff
path: root/winsup/testsuite/libltp/include
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-01-24 01:51:39 +0000
committerChristopher Faylor <me@cgf.cx>2003-01-24 01:51:39 +0000
commitb831fc4446e34fbcf513bcb44956e2d654f2b401 (patch)
tree453ae73d9f8d88fef4e6cd4899bd0691c23adfb5 /winsup/testsuite/libltp/include
parent8e61c0495ee7f1df6909cae2ffb4d32d40240d00 (diff)
downloadnewlib-b831fc4446e34fbcf513bcb44956e2d654f2b401.zip
newlib-b831fc4446e34fbcf513bcb44956e2d654f2b401.tar.gz
newlib-b831fc4446e34fbcf513bcb44956e2d654f2b401.tar.bz2
* libltp/include/usctest.h: Add externs to some variables that need it.
* winsup.api/ltp/mmap05.c (main): Make file_content volatile to avoid optimization glitch.
Diffstat (limited to 'winsup/testsuite/libltp/include')
-rw-r--r--winsup/testsuite/libltp/include/usctest.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/testsuite/libltp/include/usctest.h b/winsup/testsuite/libltp/include/usctest.h
index ef2d032..6a095db 100644
--- a/winsup/testsuite/libltp/include/usctest.h
+++ b/winsup/testsuite/libltp/include/usctest.h
@@ -167,19 +167,19 @@ extern int TEST_ERRNO;
* Global array of bit masks to indicate errnos that are expected.
* Bits set by TEST_EXP_ENOS() macro and used by TEST_CLEANUP() macro.
***********************************************************************/
-struct usc_errno_t TEST_VALID_ENO[USC_MAX_ERRNO];
+extern struct usc_errno_t TEST_VALID_ENO[USC_MAX_ERRNO];
/***********************************************************************
* Globals for returning the return code and errno from the system call
* test macros.
***********************************************************************/
-int TEST_RETURN;
-int TEST_ERRNO;
+extern int TEST_RETURN;
+extern int TEST_ERRNO;
/***********************************************************************
* temporary variables for determining max and min times in TEST macro
***********************************************************************/
-long btime, etime, tmptime;
+extern long btime, etime, tmptime;
#endif /* _USC_LIB_ */