diff --git a/docs/examples/postit2.c b/docs/examples/postit2.c
index a46f0a71bae98a3dd246e59cf2fad5100d506801..d1ecadd61c3b761382c5e68eaa855d25001bfc4e 100644
--- a/docs/examples/postit2.c
+++ b/docs/examples/postit2.c
@@ -33,8 +33,8 @@ int main(int argc, char *argv[])
   CURL *curl;
   CURLcode res;
 
-  struct HttpPost *formpost=NULL;
-  struct HttpPost *lastptr=NULL;
+  struct curl_httppost *formpost=NULL;
+  struct curl_httppost *lastptr=NULL;
   struct curl_slist *headerlist=NULL;
   char buf[] = "Expect:";