diff options
author | wtc%netscape.com <devnull@localhost> | 2003-04-09 22:29:02 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2003-04-09 22:29:02 +0000 |
commit | 73390c2a171a9d15efe782cf57464c8974b4ef5d (patch) | |
tree | 9f0e4c3edae5fbdbb4ed8496308cd2460bd7a270 /pr/tests | |
parent | 9a5ef74a24c115b7fd33ff97366fd5addda32d5e (diff) | |
download | nspr-hg-73390c2a171a9d15efe782cf57464c8974b4ef5d.tar.gz |
Bug 126932: make runtests.{sh,ksh} work on OS/2. Include the header for
getcwd in thrpool_server.c.
Modified Files: runtests.ksh runtests.sh thrpool_server.c
Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
Diffstat (limited to 'pr/tests')
-rwxr-xr-x | pr/tests/runtests.ksh | 2 | ||||
-rwxr-xr-x | pr/tests/runtests.sh | 2 | ||||
-rw-r--r-- | pr/tests/thrpool_server.c | 7 |
3 files changed, 9 insertions, 2 deletions
diff --git a/pr/tests/runtests.ksh b/pr/tests/runtests.ksh index 19c628f4..6c64cb4a 100755 --- a/pr/tests/runtests.ksh +++ b/pr/tests/runtests.ksh @@ -39,7 +39,7 @@ SYSTEM_INFO=`uname -a` OS_ARCH=`uname -s` -if [ $OS_ARCH = "Windows_NT" ] +if [ $OS_ARCH = "Windows_NT" ] || [ $OS_ARCH = "OS/2" ] then NULL_DEVICE=nul else diff --git a/pr/tests/runtests.sh b/pr/tests/runtests.sh index 4ce755cb..959b5d50 100755 --- a/pr/tests/runtests.sh +++ b/pr/tests/runtests.sh @@ -39,7 +39,7 @@ SYSTEM_INFO=`uname -a` OS_ARCH=`uname -s` -if [ $OS_ARCH = "Windows_NT" ] +if [ $OS_ARCH = "Windows_NT" ] || [ $OS_ARCH = "OS/2" ] then NULL_DEVICE=nul else diff --git a/pr/tests/thrpool_server.c b/pr/tests/thrpool_server.c index df56560e..e10dd5bd 100644 --- a/pr/tests/thrpool_server.c +++ b/pr/tests/thrpool_server.c @@ -54,6 +54,13 @@ #include <pthread.h> #endif +/* for getcwd */ +#if defined(XP_UNIX) || defined (XP_OS2_EMX) || defined(XP_BEOS) +#include <unistd.h> +#elif defined(XP_PC) +#include <direct.h> +#endif + #ifdef WIN32 #include <process.h> #endif |