]> Nishi Git Mirror - tewi.git/commitdiff
fix
authorNishi <nishi@nishi.boats>
Thu, 17 Oct 2024 04:26:00 +0000 (04:26 +0000)
committerNishi <nishi@nishi.boats>
Thu, 17 Oct 2024 04:26:00 +0000 (04:26 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@368 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/tw_module.h

index b8bd9090e39a0ba81c0f5fc1816da7fbe87aca64..3a4d8e1c455c36466371154beda1ed54019e122b 100644 (file)
@@ -12,7 +12,17 @@ extern "C" {
 
 #ifdef __NETWARE__
 #include <nwconio.h>
-#define END_MODULE int main(){DestroyScreen(GetCurrentScreen());while(1);return 0;}
+#include <nwthread.h>
+#include <stddef.h>
+#define END_MODULE     void _thread(void* arg){ \
+                               while(1); \
+                       } \
+                       int main(){ \
+                               DestroyScreen(GetCurrentScreen()); \
+                               BeginThread(_thread, NULL, 0, NULL); \
+                               ThreadSwitch(); \
+                               return 0; \
+                       }
 #else
 #define END_MODULE
 #endif