Index: trunk/psLib/src/sysUtils/psTrace.c
===================================================================
--- trunk/psLib/src/sysUtils/psTrace.c	(revision 3115)
+++ trunk/psLib/src/sysUtils/psTrace.c	(revision 3182)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-02-03 00:54:11 $
+ *  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-02-10 02:36:42 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -40,4 +40,5 @@
 #ifndef PS_NO_TRACE
 
+#include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
@@ -146,7 +147,4 @@
 /*****************************************************************************
 componentAdd(): Adds the component named "addNodeName" to the root tree.
- 
-NOTE: replace the call to strsep() with a call to strtok(), which conforms
-to ANSI-C.
  *****************************************************************************/
 static psBool componentAdd(const char *addNodeName, psS32 level)
@@ -180,5 +178,5 @@
 
     strcpy(name, addNodeName);
-    pname = &name[1];
+    pname = name+1;
     // Iterate through the components of addNodeName.  Strip off the first
     // component of the name, find that in the root tree, or add it if it
@@ -186,5 +184,10 @@
 
     while (pname != NULL) {
-        firstComponent = strsep(&pname, ".");
+        firstComponent = pname;
+        pname = strtok(pname, ".");
+        if (pname != NULL) {
+            *pname = '\0';
+            pname++;
+        }
         nodeExists = 0;
         for (i = 0; i < currentNode->n; i++) {
@@ -324,5 +327,10 @@
     pname = &name[1];
     while (pname != NULL) {
-        firstComponent = strsep(&pname, ".");
+        firstComponent = pname;
+        pname = strtok(pname, ".");
+        if (pname != NULL) {
+            *pname = '\0';
+            pname++;
+        }
         for (i = 0; i < currentNode->n; i++) {
             if (NULL == currentNode->subcomp[i]) {
