MacGyver, eat your heart out.

A New York doctor became a mile-high hero when he created a makeshift device that helped an asthmatic toddler struggling to breathe during a transatlantic flight.

Dr. Khurshid Guru, director of Robotic Surgery at the Roswell Park Cancer Institute, told Clayton Morris on "Fox and Friends Weekend" that he was on an Air Canada flight from Spain to the U.S. on Sept. 18 when he was notified of a toddler in trouble.

He found the two-year-old boy crying and short of breath. His parents said they accidentally packed his asthma medication in their checked luggage.

Using an oxygen mask, an oxygen tank, a water bottle, a plastic cup and a passenger's adult inhaler, Guru created a jerry-rigged device similar to a nebulizer that would deliver both oxygen and asthma medication to the child.

With the help of the flight crew, he cut up a water bottle and added oxygen to one end and the adult inhaler through a small hole in the bottle. That way the oxygen and medication could be delivered through the bottle's opening directly to the child.

"By the end of the treatment - he got two treatments - he was way better," Guru said. "I'm glad and thankful. And we are lucky that we were able to do this together."

You might also be interested in...

College Syllabus: Please Refrain from Saying 'God Bless You'

WATCH: Calif. HS Student Jumps In to Stop Attack on Blind Classmate

Mother Says She Found Special Needs Son Wearing Trash Bag in Classroom

School District Bans Tag on Playground to Ensure 'Physical & Emotional Safety'