Bladeren bron

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 jaren geleden
bovenliggende
commit
0c4589f0c0
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  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