Print this page
make: ship the Joyent patch to enable parallel make (originally from rm)

@@ -35,11 +35,10 @@
  */
 #include <sys/wait.h>                   /* WIFEXITED(status) */
 #include <alloca.h>             /* alloca() */
 
 #if defined(TEAMWARE_MAKE_CMN) || defined(MAKETOOL) /* tolik */
-#       include <avo/strings.h> /* AVO_STRDUP() */
 #if defined(DISTRIBUTED)
 #       include <dm/Avo_CmdOutput.h>
 #       include <rw/xdrstrea.h>
 #endif
 #endif

@@ -633,11 +632,11 @@
          * nice message about it.
          */
         SEND_MTOOL_MSG(
                 make_output_msg = new Avo_CmdOutput();
                 (void) sprintf(tmp_buf, "%d", job_msg_id);
-                make_output_msg->appendOutput(AVO_STRDUP(tmp_buf));
+                make_output_msg->appendOutput(strdup(tmp_buf));
         );
 
         tmp_buf[0] = (int) nul_char;
         if (!silent_error) {
                 if (exit_status != 0) {

@@ -676,11 +675,11 @@
                         );
                 }
                 (void) fprintf(stdout, "\n");
                 (void) fflush(stdout);
                 SEND_MTOOL_MSG(
-                        make_output_msg->appendOutput(AVO_STRDUP(tmp_buf));
+                        make_output_msg->appendOutput(strdup(tmp_buf));
                 );
         }
         SEND_MTOOL_MSG(
                 xdr_msg = (RWCollectable*) make_output_msg;
                 xdr(xdrs_p, xdr_msg);