Heavy quark production is studied at the high energy linear e^+e^- collider (LC) TESLA both in its nominal and Photon Collider (PC) mode. Leading order cross-sections are calculated for the production of heavy quarks, e^+e^- -> e^+e^- Qbar{Q}X, at high transverse momenta. The sensitivity of this process to the gluon content in the photon is studied.