You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ab...@locus.apache.org on 2000/02/17 22:52:10 UTC
cvs commit: xml-xerces/c/tests/ThreadTest ThreadTest.cpp
abagchi 00/02/17 13:52:09
Modified: c/tests/ThreadTest ThreadTest.cpp
Log:
Now compiles on Linux too
Revision Changes Path
1.6 +8 -7 xml-xerces/c/tests/ThreadTest/ThreadTest.cpp
Index: ThreadTest.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/tests/ThreadTest/ThreadTest.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ThreadTest.cpp 2000/02/06 07:48:37 1.5
+++ ThreadTest.cpp 2000/02/17 21:52:08 1.6
@@ -98,20 +98,19 @@
exit(-1);
}
};
-#endif
-//------------------------------------------------------------------------------
-//
-// UNIX specific code for starting threads
-//
-//------------------------------------------------------------------------------
-#if defined (AIX) || (SOLARIS)
+#elif defined (AIX) || (SOLARIS) || (LINUX) || (HPUX)
#include <pthread.h>
#include <unistd.h>
#include <errno.h>
+//------------------------------------------------------------------------------
+//
+// UNIX specific code for starting threads
+//
+//------------------------------------------------------------------------------
typedef void (*ThreadFunc)(void *);
@@ -150,6 +149,8 @@
//pthread_join(tId, NULL);
};
+#else
+#error This platform is not supported
#endif