]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
os400: handle CURL_TEMP_PRINTF() while building bind source
authorPatrick Monnerat <patrick@monnerat.net>
Fri, 18 Aug 2023 23:45:00 +0000 (01:45 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 30 Aug 2023 09:39:01 +0000 (11:39 +0200)
Closes #11547

packages/OS400/make-lib.sh

index 7ad16109beb3e2b73a939ccef7a8572d5d64039e..860cb5d76da24edf5bd9dadb0b3d23b8f37a2715 100755 (executable)
@@ -100,13 +100,13 @@ fi
 #       Gather the list of symbols to export.
 #       First use awk to pull all CURL_EXTERN function prototypes from
 #       the header files, pass through to sed to strip CURL_DEPRECATED(..)
-#       then back to awk to pull the string immediately to the left of a
-#       bracket stripping any spaces or *'s.
+#       and CURL_TEMP_PRINTF(..) then back to awk to pull the string
+#       immediately to the left of a bracket stripping any spaces or *'s.
 
 EXPORTS=`awk '/^CURL_EXTERN/,/;/'                                       \
               "${TOPDIR}"/include/curl/*.h                              \
               "${SCRIPTDIR}/ccsidcurl.h"                                |
-         sed 's| CURL_DEPRECATED(.*)||g'                                |
+         sed 's/ CURL_DEPRECATED(.*)//g;s/ CURL_TEMP_PRINTF(.*)//g'     |
          awk '{br=index($0,"(");                                        \
               if (br) {                                                 \
                 for(c=br-1; ;c--) {                                     \