Code Monkey home page Code Monkey logo

simple-http-server's Issues

/home/admin/Downloads/simple-http-server/server.c:172:51: error: expected ‘,’ or ‘;’ before ‘hostnameport’

/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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.