compiler warning fix
authorYang Tse <yangsita@gmail.com>
Tue, 20 Feb 2007 14:26:15 +0000 (14:26 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 20 Feb 2007 14:26:15 +0000 (14:26 +0000)
lib/getinfo.c

index 5cf3bca..56b5d6f 100644 (file)
@@ -75,7 +75,9 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...)
   double *param_doublep=NULL;
   char **param_charp=NULL;
   struct curl_slist **param_slistp=NULL;
+#ifdef MSG_PEEK
   char buf;
+#endif
 
   if(!data)
     return CURLE_BAD_FUNCTION_ARGUMENT;