Sorry, I can't tell how since I dont know. Generally, C code is transfportable to a great degree, with a few exceptions and modifications.
But if it helps, there are some software packages that actually can convert Win code to UNIX/Linux code.
Check out
Mainsoft Corp . They specialize in software compilers that are cross-platform.