Add #include <unistd.h> to get the prototype for __syscall().
Add #include <unistd.h> to get the prototype for __syscall().

Cast to long before casting to a void ptr to shut up gcc.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase