--- src/glpng.c.orig 2014-06-01 16:58:59.000000000 -0500 +++ src/glpng.c 2018-02-18 22:20:45.000000000 -0600 @@ -28,8 +28,13 @@ #define GL_GLEXT_PROTOTYPES #include +#if defined(__APPLE__) +#include +#include +#else #include #include +#endif #include #include #include