diff --git a/lib/http_negotiate.h b/lib/http_negotiate.h
index 09141bda792c135b9216fa9b6f3e8c0a935ef8e2..36a346c56511a08d28e1bf919498cc9b50e0b3ff 100644
--- a/lib/http_negotiate.h
+++ b/lib/http_negotiate.h
@@ -27,7 +27,7 @@
 #ifdef GSSAPI
 
 /* this is for Negotiate header input */
-CURLcode Curl_input_negotiate(struct connectdata *conn, char *header);
+int Curl_input_negotiate(struct connectdata *conn, char *header);
 
 /* this is for creating Negotiate header output */
 CURLcode Curl_output_negotiate(struct connectdata *conn);