After much scouring the web i eventually found a fix for vmware workstation 7 on Ubuntu 10.4
Follow these to the T. and you should have no problem compiling vmware modules.

1. Switch to your temp directory

]tar xf /usr/lib/vmware/modules/source/vmnet.tar

3. Add #include “compat_sched.h” under the first set of includes

tar cf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only

5. Extract Virtual Machine Communication Interface

gksudo gedit vmci-only/linux/vmciKernelIf.c

7. Add #include “compat_sched.h” under the first set of includes

tar cf /usr/lib/vmware/modules/source/vmci.tar vmci-only

9. Finally recompile the vmware modules