Pārlūkot izejas kodu

imap-append.c: Fixed compilation errors on some platforms

In the initializer for len, there is no prototype for "strlen".
In this statement, there is no prototype for "memcpy".
Steve Holme 10 gadi atpakaļ
vecāks
revīzija
0c4589f0c0
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      docs/examples/imap-append.c

+ 1 - 0
docs/examples/imap-append.c

@@ -20,6 +20,7 @@
  *
  ***************************************************************************/
 #include <stdio.h>
+#include <string.h>
 #include <curl/curl.h>
 
 /* This is a simple example showing how to send mail using libcurl's IMAP