On The Origin of Species by Charles Darwin Chapter 6 Page 82

purpose by successive slight modifications, each better and better fitted, for so trifling an object as to drive away flies; yet we should pause before being too positive even in this case, for we know that the distribution and existence of cattle and other animals in South America absolutely depend on their power of resisting the attacks of insects: so that individuals which could by any means defend themselves from these small enemies, would be able to range into new pastures and thus gain a great advantage.

It is not that the larger quadrupeds are actually destroyed (except in some rare cases) by flies, but they are incessantly harassed and their strength reduced, so that they are more subject to disease, or not so well enabled in a coming dearth to search for food, or to escape from beasts of prey.