summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2009-08-31 15:22:16 +0000
committerPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2009-08-31 15:22:16 +0000
commiteb438719f7cd9f6ae3f39a14db3a18007448341a (patch)
tree17791d24fd188c9ccd4da90c826c90b567b363c9 /packages
parent44e2832b2a06ad95a3a5241b7c1b0fece76cace5 (diff)
downloadcurl-eb438719f7cd9f6ae3f39a14db3a18007448341a.tar.gz
OS400: adjust inclusion paths in include files to avoid "include file not found" in DB2 mode.
Diffstat (limited to 'packages')
-rw-r--r--packages/OS400/ccsidcurl.c4
-rw-r--r--packages/OS400/ccsidcurl.h6
-rw-r--r--packages/OS400/make-include.sh14
3 files changed, 17 insertions, 7 deletions
diff --git a/packages/OS400/ccsidcurl.c b/packages/OS400/ccsidcurl.c
index d64672dab..4a38f7c59 100644
--- a/packages/OS400/ccsidcurl.c
+++ b/packages/OS400/ccsidcurl.c
@@ -32,8 +32,8 @@
#pragma enum(int)
-#include <curl/curl.h>
-#include <curl/mprintf.h>
+#include "curl.h"
+#include "mprintf.h"
#include "urldata.h"
#include "url.h"
#include "getinfo.h"
diff --git a/packages/OS400/ccsidcurl.h b/packages/OS400/ccsidcurl.h
index f270d8334..0efacef36 100644
--- a/packages/OS400/ccsidcurl.h
+++ b/packages/OS400/ccsidcurl.h
@@ -25,9 +25,9 @@
#ifndef __CURL_CCSIDCURL_H
#define __CURL_CCSIDCURL_H
-#include <curl.h>
-#include <easy.h>
-#include <multi.h>
+#include "curl.h"
+#include "easy.h"
+#include "multi.h"
CURL_EXTERN char * curl_version_ccsid(unsigned int ccsid);
diff --git a/packages/OS400/make-include.sh b/packages/OS400/make-include.sh
index 81a16f43c..e216eb313 100644
--- a/packages/OS400/make-include.sh
+++ b/packages/OS400/make-include.sh
@@ -35,15 +35,25 @@ fi
copy_hfile()
{
+ destfile="${1}"
+ srcfile="${2}"
+ shift
+ shift
sed -e '1i\
#pragma enum(int)\
-' -e '$a\
+' "${@}" -e '$a\
#pragma enum(pop)\
-' < "${2}" > "${1}"
+' < "${srcfile}" > "${destfile}"
}
# Copy the header files.
+DEST="${SRCPF}/`db2_name curl/curl.h`.MBR"
+if action_needed "${DEST}" curl/curl.h
+then copy_hfile "${DEST}" curl/curl.h -e \
+ 's/^# *include *[<"]curl\/curlbuild.h[">]/#include "curlbuild.h"/'
+fi
+
for HFILE in curl/*.h ${SCRIPTDIR}/ccsidcurl.h
do DEST="${SRCPF}/`db2_name \"${HFILE}\"`.MBR"
if action_needed "${DEST}" "${HFILE}"