diff -r a94cf2e94492 -r 38bf6dd8f4e7 src/server/public/nsapi.h --- a/src/server/public/nsapi.h Sun Oct 23 11:12:12 2016 +0200 +++ b/src/server/public/nsapi.h Wed Oct 26 15:53:56 2016 +0200 @@ -383,6 +383,13 @@ /* --- End native platform includes --- */ +#ifndef TRUE +#define TRUE 1 +#endif +#ifndef FALSE +#define FALSE 0 +#endif + /* --- Begin type definitions --- */ /* NOTE: both SYS_FILE and SYS_NETFD are actually NSPR PRFileDesc * and can */ @@ -1359,6 +1366,7 @@ #define CALLOC(size) calloc(1, size) #define REALLOC realloc #define FREE free +#define STRDUP strdup // func util functions FuncStruct* func_resolve(pblock *pb, Session *sn, Request *rq); @@ -1384,6 +1392,7 @@ NSAPI_PUBLIC int http_check_preconditions(Session *sn, Request *rq, struct tm *mtm, const char *etag); NSAPI_PUBLIC int http_set_finfo(Session *sn, Request *rq, struct stat *finfo); +NSAPI_PUBLIC char **http_hdrs2env(pblock *pb); typedef void (*thrstartfunc)(void *); SYS_THREAD INTsysthread_start(int prio, int stksz, thrstartfunc fn, void *arg);