AcessNative - Fix some compilation issues
[tpg/acess2.git] / AcessNative / ld-acess_src / main.c
index a03e963..8f24db8 100644 (file)
@@ -9,6 +9,7 @@
 // === IMPORTS ===
 extern int     gSocket;
 extern int     giSyscall_ClientID;
+extern int     gbSyscallDebugEnabled;
 extern void    acess__exit(int Status);
 extern void    Request_Preinit(void);
 
@@ -59,6 +60,10 @@ int main(int argc, char *argv[], char **envp)
                        }
                        continue ;
                }
+               if( strcmp(argv[i], "--trace") == 0 ) {
+                       gbSyscallDebugEnabled = 1;
+                       continue ;
+               }
                
                if( argv[i][0] != '-' ) break;
        }

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