I do believe that the wait function is a windows thing. As stated above...
Also are you getting this from a book or somthing, because that code doesn't do anything.
No... dude, thats the same as your other thread. The suggestion was to implement a wait function yourself with the functions ctime offers. basically, you'd just have to run an infinite loop that waits til 2 seconds have passed.