Changeset 349 in Main for trunk/Server/server.c
- Timestamp:
- Oct 16, 2024, 5:08:08 AM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/server.c
r348 r349 65 65 #elif defined(__NETWARE__) 66 66 #include <sys/socket.h> 67 #include <arpa/inet.h> 68 # include <sys/select.h>69 # include <pthread.h>67 68 #define IPPROTO_TCP 0 69 #define INADDR_ANY 0 70 70 #define htons(x) x 71 71 #include "strptime.h" 72 typedef int socklen_t; 72 73 #else 73 74 #ifdef USE_POLL … … 936 937 tw_http_error(s, sock, 403, name, port, vhost_entry); 937 938 } else { 938 #ifdef __NETWARE__ 939 tw_process_page(s, sock, tw_http_status(200), mime, f, NULL, st.st_size, st.st_mtime.tv_sec, cmtime); 940 #else 941 tw_process_page(s, sock, tw_http_status(200), mime, f, NULL, st.st_size, st.st_mtime, cmtime); 942 #endif 939 tw_process_page(s, sock, tw_http_status(200), mime, f, NULL, st.st_size, st.st_mtime, cmtime); 943 940 fclose(f); 944 941 } … … 968 965 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) 969 966 #ifdef __NETWARE__ 970 pthread_exit(NULL);971 967 #else 972 968 _endthread(); … … 1079 1075 _beginthread(tw_server_pass, 0, 0, e); 1080 1076 #elif defined(__NETWARE__) 1081 pthread_t thr; 1082 pthread_create(&thr, NULL, (void* (*)(void*))tw_server_pass, e); 1083 pthread_detach(thr); 1077 tw_server_pass(e); 1084 1078 #else 1085 1079 _beginthread(tw_server_pass, 0, e);
Note:
See TracChangeset
for help on using the changeset viewer.