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

cd /tmp

2. Extract the vmware net source module

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

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

 gksudo gedit vmnet-only/vnetUserListener.c

4. Compress and save the source back to the original location

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

5. Extract Virtual Machine Communication Interface

tar xf /usr/lib/vmware/modules/source/vmci.tar

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

gksudo gedit vmci-only/linux/vmciKernelIf.c

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

gksudo gedit vmci-only/include/pgtbl.h

8. Compress and save the source back to the original location

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

9. Finally recompile the vmware modules

sudo vmware-modconfig --console --install-all

..