Compilation issues with older version of cURL fixed.
authorAlex Kirhenshtein <alk@netxms.org>
Wed, 13 Nov 2013 12:55:45 +0000 (14:55 +0200)
committerAlex Kirhenshtein <alk@netxms.org>
Wed, 13 Nov 2013 12:55:45 +0000 (14:55 +0200)
src/agent/subagents/netsvc/main.cpp

index 5d8da0e..5c15ce7 100644 (file)
 
 #include "netsvc.h"
 
+#ifndef CURL_MAX_HTTP_HEADER
+// workaround for older cURL versions
+#define CURL_MAX_HTTP_HEADER CURL_MAX_WRITE_SIZE
+#endif
+
 UINT32 g_flags = NETSVC_AF_VERIFYPEER;
 char g_certBundle[1024] = {0};
 UINT32 g_timeout = 30;