Changeset 347 in Main for trunk/Server/server.c
- Timestamp:
- Oct 16, 2024, 1:33:28 AM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/server.c
r342 r347 65 65 #elif defined(__NETWARE__) 66 66 #include <sys/socket.h> 67 #include < nwthread.h>68 # define IPPROTO_TCP 069 # define INADDR_ANY 067 #include <arpa/inet.h> 68 #include <sys/select.h> 69 #include <pthread.h> 70 70 #define htons(x) x 71 71 #include "strptime.h" … … 107 107 #endif 108 108 109 #if defined(__USLC__) || defined(__NeXT__) || defined(__NETWARE__)109 #if defined(__USLC__) || defined(__NeXT__) 110 110 typedef int socklen_t; 111 111 #endif … … 933 933 tw_http_error(s, sock, 403, name, port, vhost_entry); 934 934 } else { 935 tw_process_page(s, sock, tw_http_status(200), mime, f, NULL, st.st_size, st.st_mtime, cmtime); 935 #ifdef __NETWARE__ 936 tw_process_page(s, sock, tw_http_status(200), mime, f, NULL, st.st_size, st.st_mtime.tv_sec, cmtime); 937 #else 938 tw_process_page(s, sock, tw_http_status(200), mime, f, NULL, st.st_size, st.st_mtime, cmtime); 939 #endif 936 940 fclose(f); 937 941 } … … 961 965 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) 962 966 #ifdef __NETWARE__ 963 ExitThread(EXIT_THREAD, 0);967 pthread_exit(NULL); 964 968 #else 965 969 _endthread(); … … 1072 1076 _beginthread(tw_server_pass, 0, 0, e); 1073 1077 #elif defined(__NETWARE__) 1074 BeginThread(tw_server_pass, 0, 0, e); 1078 pthread_t thr; 1079 pthread_create(&thr, NULL, (void* (*)(void*))tw_server_pass, e); 1080 pthread_detach(thr); 1075 1081 #else 1076 1082 _beginthread(tw_server_pass, 0, e);
Note:
See TracChangeset
for help on using the changeset viewer.