examples: delete unused includes

Delete a bunch of unnecessary-looking headers from some examples. This
is known to be tricky on AIX (perhaps also in other less-tested envs).

Let me know if any of this looks incorrect or outright fails on some
systems.

Follow-up to d4b85890555388bec212b75f47a5c1a48705b156 #13771
Closes #13785
This commit is contained in:
Viktor Szakats 2024-05-24 19:52:05 +02:00
parent f709a45c57
commit 53b4dfe405
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201
15 changed files with 0 additions and 63 deletions

View File

@ -26,12 +26,8 @@
* </DESC>
*/
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#ifndef _WIN32
# include <unistd.h>
#endif
#include <curl/curl.h>
static const char *urls[] = {

View File

@ -29,7 +29,6 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <time.h>
#include <curl/curl.h>

View File

@ -30,12 +30,6 @@
#include <string.h>
#include <errno.h>
/* somewhat unix-specific */
#ifndef _WIN32
#include <sys/time.h>
#include <unistd.h>
#endif
/* curl stuff */
#include <curl/curl.h>
#include <curl/mprintf.h>

View File

@ -29,12 +29,6 @@
#include <stdlib.h>
#include <string.h>
/* somewhat unix-specific */
#ifndef _WIN32
#include <sys/time.h>
#include <unistd.h>
#endif
/* curl stuff */
#include <curl/curl.h>

View File

@ -29,12 +29,6 @@
#include <stdlib.h>
#include <string.h>
/* somewhat unix-specific */
#ifndef _WIN32
#include <sys/time.h>
#include <unistd.h>
#endif
/* curl stuff */
#include <curl/curl.h>

View File

@ -30,12 +30,6 @@
#include <stdio.h>
#include <string.h>
/* somewhat unix-specific */
#ifndef _WIN32
#include <sys/time.h>
#include <unistd.h>
#endif
/* curl stuff */
#include <curl/curl.h>

View File

@ -29,12 +29,6 @@
#include <stdio.h>
#include <string.h>
/* somewhat unix-specific */
#ifndef _WIN32
#include <sys/time.h>
#include <unistd.h>
#endif
/* curl stuff */
#include <curl/curl.h>

View File

@ -28,12 +28,6 @@
#include <stdio.h>
#include <string.h>
/* somewhat unix-specific */
#ifndef _WIN32
#include <sys/time.h>
#include <unistd.h>
#endif
/* curl stuff */
#include <curl/curl.h>

View File

@ -33,9 +33,6 @@
#include <stdio.h>
#include <string.h>
#ifndef _WIN32
#include <sys/time.h>
#endif
#include <curl/curl.h>

View File

@ -28,9 +28,6 @@
#include <stdio.h>
#include <string.h>
#ifndef _WIN32
#include <sys/time.h>
#endif
#include <curl/curl.h>

View File

@ -29,12 +29,6 @@
#include <stdio.h>
#include <string.h>
/* somewhat unix-specific */
#ifndef _WIN32
#include <sys/time.h>
#include <unistd.h>
#endif
/* curl stuff */
#include <curl/curl.h>

View File

@ -26,9 +26,6 @@
* </DESC>
*/
#include <stdio.h>
#ifndef _WIN32
#include <unistd.h>
#endif
#include <curl/curl.h>

View File

@ -27,9 +27,6 @@
*/
#include <stdio.h>
#include <stdlib.h>
#ifndef _WIN32
#include <unistd.h>
#endif
#include <curl/curl.h>

View File

@ -27,9 +27,6 @@
*/
#include <stdio.h>
#include <stdlib.h>
#ifndef _WIN32
#include <unistd.h>
#endif
#include <curl/curl.h>

View File

@ -36,7 +36,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <expat.h>
#include <curl/curl.h>