diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-18 10:17:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-18 10:17:24 +0000 |
commit | a1f02261063d91544d354f31e18547a0dfbdbbaf (patch) | |
tree | 5b7bcd8aadd97b2150d5156832cc38591252c4ab | |
parent | bcd466b023774d2f334329a7a7b178e11b79896c (diff) |
ensure this builds under windows
-rw-r--r-- | sal/qa/rtl/doublelock/rtl_doublelocking.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sal/qa/rtl/doublelock/rtl_doublelocking.cxx b/sal/qa/rtl/doublelock/rtl_doublelocking.cxx index 638dbea78..bfb7ec314 100644 --- a/sal/qa/rtl/doublelock/rtl_doublelocking.cxx +++ b/sal/qa/rtl/doublelock/rtl_doublelocking.cxx @@ -43,6 +43,13 @@ #include <cppunit/extensions/HelperMacros.h> #include <cppunit/plugin/TestPlugIn.h> +#ifdef WNT +#include <windows.h> +#else +#include <unistd.h> +#include <time.h> +#endif + // ----------------------------------------------------------------------------- #define CONST_TEST_STRING "gregorian" @@ -210,6 +217,8 @@ namespace rtl_DoubleLocking #if OSL_DEBUG_LEVEL > 2 printf("Value in Thread #1 is %d\n", nValueOK); printf("Value in Thread #2 is %d\n", nValueOK2); +#else + (void)nValueOK2; #endif sal_Int32 nValueFails = 0; |