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 | 6173b8425d2ccd2c0acafe63b42e83cd32027866 (patch) | |
tree | 94f9d1a76ef6213d221c192532ca656c65809560 /sal | |
parent | 2c53ce5af80ea29e78be59791aa61c5d5287e297 (diff) |
ensure this builds under windows
Diffstat (limited to 'sal')
-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 5771563062b3..74feeb1156b6 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; |