Flirting is being friendly, with some slight sexual hints. The sexual hints can be simple compliments, body language, or even some touching.
To be honest though, it is one of those things you can't define. Apparently I am a huge flirt, and I didn't realize it until recently. I always thought I was being friendly, but I there is a thin blurry line between friendly and flirty.