chiark / gitweb /
libgpg-error: workaround no stdout atexit with constructor prior to N (#1017)
[termux-packages] / packages / cmake / Source-cmExecProgramCommand.cxx.patch
index 75f82852802062e8397951965bd7af8c1a6aab5d..abe6c1287daffd76c17085ccbdc7276f4fab7e10 100644 (file)
@@ -1,12 +1,12 @@
-diff -u -r ../cmake-3.6.1/Source/cmExecProgramCommand.cxx ./Source/cmExecProgramCommand.cxx
---- ../cmake-3.6.1/Source/cmExecProgramCommand.cxx     2016-07-22 09:50:22.000000000 -0400
-+++ ./Source/cmExecProgramCommand.cxx  2016-08-14 06:53:11.667195266 -0400
-@@ -209,7 +209,7 @@
+diff -u -r ../cmake-3.7.1/Source/cmExecProgramCommand.cxx ./Source/cmExecProgramCommand.cxx
+--- ../cmake-3.7.1/Source/cmExecProgramCommand.cxx     2016-11-30 10:14:32.000000000 -0500
++++ ./Source/cmExecProgramCommand.cxx  2017-01-06 06:22:11.611620662 -0500
+@@ -200,7 +200,7 @@
    }
    fflush(stdout);
    fflush(stderr);
    }
    fflush(stdout);
    fflush(stderr);
--  const char* cmd[] = { "/bin/sh", "-c", command, 0 };
-+  const char* cmd[] = { "@TERMUX_PREFIX@/bin/sh", "-c", command, 0 };
+-  const char* cmd[] = { "/bin/sh", "-c", command, CM_NULLPTR };
++  const char* cmd[] = { "@TERMUX_PREFIX@/bin/sh", "-c", command, CM_NULLPTR };
    cmsysProcess_SetCommand(cp, cmd);
  #endif
  
    cmsysProcess_SetCommand(cp, cmd);
  #endif