* python-setuptools - 40.2 - fix a warninga about implicit function "execv" When compiling, I got warnings about an implciit function, execv. According to Microsoft ( https://msdn.microsoft.com/en-us/library/ms235416.aspx ), the execv function is depreciated in favor of _execv, * Minor fixes. Removed comments about warnings. It was my attempt to document why I was doing something. Added a few touches from Archlinux concerning python-virtualenv and removing the release tag. * Commented out some lines I was working on checking. This is not yet done because there's prequisits still required and a few other issues.
25 lines
676 B
Plaintext
25 lines
676 B
Plaintext
--- setuptools-40.2.0/launcher.c.orig 2018-08-27 00:31:49.470981800 -0400
|
|
+++ setuptools-40.2.0/launcher.c 2018-08-27 00:35:03.568692800 -0400
|
|
@@ -37,6 +37,9 @@
|
|
#include <windows.h>
|
|
#include <tchar.h>
|
|
#include <fcntl.h>
|
|
+#ifdef __MINGW32__
|
|
+#include <process.h>
|
|
+#endif
|
|
|
|
int child_pid=0;
|
|
|
|
@@ -369,7 +372,11 @@ int run(int argc, char **argv, int is_gu
|
|
|
|
if (is_gui) {
|
|
/* Use exec, we don't need to wait for the GUI to finish */
|
|
+#ifdef __MINGW32__
|
|
+ _execv(ptr, (const char * const *)(newargs));
|
|
+#else
|
|
execv(ptr, (const char * const *)(newargs));
|
|
+#endif
|
|
return fail("Could not exec %s", ptr); /* shouldn't get here! */
|
|
}
|
|
|