CBL-Mariner/SPECS-EXTENDED/libcli/libcli-win32issue.patch

21 строка
610 B
Diff

--- libcli-e60d4cca3d0e702c60ad0f9e2eecaa461baa4744/libcli.c 2016-01-21 18:14:00.000000000 -0600
+++ libcli-e60d4cca3d0e702c60ad0f9e2eecaa461baa4744.new/libcli.c 2018-02-13 11:59:03.678877263 -0600
@@ -1148,7 +1148,7 @@
int des;
if ((des = !strncasecmp(pass, DES_PREFIX, sizeof(DES_PREFIX)-1)))
pass += sizeof(DES_PREFIX)-1;
-
+#define WIN32
#ifndef WIN32
/*
* TODO - find a small crypt(3) function for use on windows
@@ -1199,7 +1199,7 @@
if ((cmd = malloc(CLI_MAX_LINE_LENGTH)) == NULL)
return CLI_ERROR;
-
+#undef WIN32
#ifdef WIN32
/*
* OMG, HACK