fix <errno.h> for requests

This commit is contained in:
pikastech 2022-11-12 15:49:50 +08:00
parent ebe10bc5f4
commit 04a174a7d3
3 changed files with 5 additions and 5 deletions

View File

@ -82,7 +82,9 @@
"time.h": "c",
"platform_thread.h": "c",
"platform_timer.h": "c",
"stddef.h": "c"
"stddef.h": "c",
"errno.h": "c",
"ctype.h": "c"
},
"python.formatting.provider": "autopep8",
"C_Cpp.errorSquiggles": "Disabled"

View File

@ -15,15 +15,12 @@
* 2021-06-09 xiangxistu add shard download function
*/
#include "webclient.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "webclient.h"
#include <sys/errno.h>
#define DBG_ENABLE
#define DBG_SECTION_NAME "web"
#ifdef WEBCLIENT_DEBUG

View File

@ -1,6 +1,7 @@
#include "PikaObj.h"
#ifdef __linux__
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <sys/socket.h>