AcessNative - Compile fixes after select() implementation
authorJohn Hodge <[email protected]>
Tue, 1 Mar 2011 06:32:44 +0000 (14:32 +0800)
committerJohn Hodge <[email protected]>
Tue, 1 Mar 2011 06:32:44 +0000 (14:32 +0800)
AcessNative/acesskernel_src/helpers.c
AcessNative/acesskernel_src/include/arch.h
AcessNative/acesskernel_src/server.c
AcessNative/acesskernel_src/threads.c

index ef5f1db..e598ef1 100644 (file)
@@ -4,9 +4,10 @@
  *
  * Kernel Main
  */
-#include <acess.h>
+#include <arch.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdarg.h>
 #include <sys/time.h>
 
 void LogF(const char *Fmt, ...)
index 8f0eb79..a6685b2 100644 (file)
@@ -4,7 +4,7 @@
 #define _ARCH_H_
 
 #include <stdint.h>
-#include <stdlib.h>
+//#include <stdlib.h>
 #include <pthread.h>
 #undef CLONE_VM
 #define        _MODULE_NAME_   "NativeKernel"
@@ -26,6 +26,13 @@ typedef intptr_t     Uint;
 typedef intptr_t       tVAddr;
 typedef intptr_t       tPAddr;
 
+typedef        int     BOOL;
+
+typedef uint32_t       tTID;
+typedef uint32_t       tPID;
+typedef uint32_t       tUID;
+typedef uint32_t       tGID;
+
 struct sShortSpinlock
 {
         int    IsValid;
@@ -35,5 +42,7 @@ struct sShortSpinlock
 #define SHORTLOCK(...)
 #define SHORTREL(...)
 
+#define        NUM_CFG_ENTRIES 10
+
 #endif
 
index af33bfd..5d46f20 100644 (file)
@@ -94,10 +94,10 @@ tClient *Server_GetClient(int ClientID)
                ret->CurrentRequest = NULL;
                
                if( !ret->WorkerThread ) {
-                       ret->WorkerThread = SDL_CreateThread( Server_WorkerThread, ret );
                        ret->WaitFlag = SDL_CreateCond();
                        ret->Mutex = SDL_CreateMutex();
                        SDL_mutexP( ret->Mutex );
+                       ret->WorkerThread = SDL_CreateThread( Server_WorkerThread, ret );
                }
        }
        
index e436836..5a0ce13 100644 (file)
@@ -7,7 +7,7 @@
  */
 #define _SIGNAL_H_
 #undef CLONE_VM        // Such a hack
-#include <acess.h>
+#include <arch.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <stdint.h>

UCC git Repository :: git.ucc.asn.au