fumiama / simple-http-server Goto Github PK
View Code? Open in Web Editor NEWA variant of Tinyhttpd.
License: MIT License
A variant of Tinyhttpd.
License: MIT License
/home/admin/Downloads/simple-http-server/tcpool.h:224:34: note: ‘uintptr_t’ is defined in header ‘<stdint.h>’; did you forget to ‘#include <stdint.h>’?
/home/admin/Downloads/simple-http-server/tcpool.h:224:44: error: expected ‘)’ before ‘pthread_getspecific’
224 | uint32_t index = (uint32_t)((uintptr_t)pthread_getspecific(__tcpool_pthread_key_index));
| ~ ^~~~~~~~~~~~~~~~~~~
| )
/home/admin/Downloads/simple-http-server/tcpool.h: In function ‘handle_pipe’:
/home/admin/Downloads/simple-http-server/tcpool.h:247:34: error: ‘uintptr_t’ undeclared (first use in this function)
247 | uint32_t index = (uint32_t)((uintptr_t)pthread_getspecific(__tcpool_pthread_key_index));
| ^~~~~~~~~
/home/admin/Downloads/simple-http-server/tcpool.h:247:34: note: ‘uintptr_t’ is defined in header ‘<stdint.h>’; did you forget to ‘#include <stdint.h>’?
/home/admin/Downloads/simple-http-server/tcpool.h:247:44: error: expected ‘)’ before ‘pthread_getspecific’
247 | uint32_t index = (uint32_t)((uintptr_t)pthread_getspecific(__tcpool_pthread_key_index));
| ~ ^~~~~~~~~~~~~~~~~~~
| )
/home/admin/Downloads/simple-http-server/tcpool.h: In function ‘handle_accept’:
/home/admin/Downloads/simple-http-server/tcpool.h:332:62: error: ‘uintptr_t’ undeclared (first use in this function)
332 | pthread_setspecific(__tcpool_pthread_key_index, (void*)((uintptr_t)tcpool_timer_pointer_of(p)->index+1));
| ^~~~~~~~~
/home/admin/Downloads/simple-http-server/tcpool.h:332:62: note: ‘uintptr_t’ is defined in header ‘<stdint.h>’; did you forget to ‘#include <stdint.h>’?
/home/admin/Downloads/simple-http-server/server.c: In function ‘accept_action’:
/home/admin/Downloads/simple-http-server/server.c:172:41: error: ‘uintptr_t’ undeclared (first use in this function)
172 | int host_chk_passed = !(uintptr_t)hostnameport;
| ^~~~~~~~~
/home/admin/Downloads/simple-http-server/server.c:71:1: note: ‘uintptr_t’ is defined in header ‘<stdint.h>’; did you forget to ‘#include <stdint.h>’?
70 | #include "tcpool.h"
+++ |+#include <stdint.h>
71 |
/home/admin/Downloads/simple-http-server/server.c:172:51: error: expected ‘,’ or ‘;’ before ‘hostnameport’
172 | int host_chk_passed = !(uintptr_t)hostnameport;
| ^~~~~~~~~~~~
make[2]: *** [CMakeFiles/simple-http-server.dir/build.make:76: CMakeFiles/simple-http-server.dir/server.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/simple-http-server.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.