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 /tmp2. Extract the vmware net source module
]tar xf /usr/lib/vmware/modules/source/vmnet.tar3. Add #include “compat_sched.h” under the first set of includes
gksudo gedit vmnet-only/vnetUserListener.c4. Compress and save the source back to the original location
tar cf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only5. Extract Virtual Machine Communication Interface
tar xf /usr/lib/vmware/modules/source/vmci.tar6. Add #include “compat_sched.h” under the first set of includes
gksudo gedit vmci-only/linux/vmciKernelIf.c7. Add #include “compat_sched.h” under the first set of includes
gksudo gedit vmci-only/include/pgtbl.h8. Compress and save the source back to the original location
tar cf /usr/lib/vmware/modules/source/vmci.tar vmci-only9. Finally recompile the vmware modules
sudo vmware-modconfig --console --install-all..
ty 🙂