File 0024-CURLOPT_POSTREDIR-might-not-be-defined.patch of Package sblim-sfcb

From 23f2368589f229fd40a5d053b60db3168131082c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Wed, 29 Nov 2017 11:03:16 +0100
Subject: [PATCH 24/26] CURLOPT_POSTREDIR might not be defined

---
 indCIMXMLExport.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/indCIMXMLExport.c b/indCIMXMLExport.c
index 60a420b74d1e..36ed1d390363 100644
--- a/indCIMXMLExport.c
+++ b/indCIMXMLExport.c
@@ -245,7 +245,9 @@ genRequest(CurlData * cd, char *url, char **msg)
     rv = curl_easy_setopt(cd->mHandle, CURLOPT_FOLLOWLOCATION, 1);
     rv = curl_easy_setopt(cd->mHandle, CURLOPT_UNRESTRICTED_AUTH, 0); // off for now
     rv = curl_easy_setopt(cd->mHandle, CURLOPT_MAXREDIRS, 3); // prevent loop
+#ifdef CURLOPT_POSTREDIR
     rv = curl_easy_setopt(cd->mHandle, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
+#endif
   }
 
   /*
-- 
2.15.0

openSUSE Build Service is sponsored by