mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
fix <errno.h> for requests
This commit is contained in:
parent
ebe10bc5f4
commit
04a174a7d3
4
port/linux/.vscode/settings.json
vendored
4
port/linux/.vscode/settings.json
vendored
@ -82,7 +82,9 @@
|
|||||||
"time.h": "c",
|
"time.h": "c",
|
||||||
"platform_thread.h": "c",
|
"platform_thread.h": "c",
|
||||||
"platform_timer.h": "c",
|
"platform_timer.h": "c",
|
||||||
"stddef.h": "c"
|
"stddef.h": "c",
|
||||||
|
"errno.h": "c",
|
||||||
|
"ctype.h": "c"
|
||||||
},
|
},
|
||||||
"python.formatting.provider": "autopep8",
|
"python.formatting.provider": "autopep8",
|
||||||
"C_Cpp.errorSquiggles": "Disabled"
|
"C_Cpp.errorSquiggles": "Disabled"
|
||||||
|
@ -15,15 +15,12 @@
|
|||||||
* 2021-06-09 xiangxistu add shard download function
|
* 2021-06-09 xiangxistu add shard download function
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "webclient.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "webclient.h"
|
|
||||||
|
|
||||||
#include <sys/errno.h>
|
|
||||||
|
|
||||||
#define DBG_ENABLE
|
#define DBG_ENABLE
|
||||||
#define DBG_SECTION_NAME "web"
|
#define DBG_SECTION_NAME "web"
|
||||||
#ifdef WEBCLIENT_DEBUG
|
#ifdef WEBCLIENT_DEBUG
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#include "PikaObj.h"
|
#include "PikaObj.h"
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user