Subject: | cygwin.c: removed API function |
Cygwin has long removed the API you are still using. Please switch to the new API or add a version test if you still want to support ancient Cygwin versions.
Subject: | perl-Proc-ProcessTable.src.patch |
--- origsrc/Proc-ProcessTable-0.51/os/cygwin.c 2013-02-19 00:34:31.000000000 +0100
+++ src/Proc-ProcessTable-0.51/os/cygwin.c 2015-05-23 22:49:54.961316200 +0200
@@ -218,7 +218,11 @@ OS_get_table()
{
char *s;
pname[0] = '\0';
+#if 0
cygwin_conv_to_posix_path (p->progname, pname);
+#else
+ cygwin_conv_path((CCP_RELATIVE|CCP_WIN_A_TO_POSIX), p->progname, pname, MAX_PATH);
+#endif
s = strchr (pname, '\0') - 4;
if (s > pname && strcasecmp (s, ".exe") == 0)
*s = '\0';