Implicit declarations cause build failures
Submitted by Thibaut Paumard
Created attachment 197585 add missing declarations and #includes
As the Debian maintainer for gimp-gap (2.6.0), I have encountered several breakages due to the fact that several #include directives are missing (and a couple of function declarations need to be provided by hand).
The 2 problems which can (or have) occurred due to this are:
- when the compiler gets stricter, it sometimes starts failing at guessing a prototype (-> build failure);
- the implicit return value is int, which is too short to hold a void* on 64 bit architectures and causes various build and run-time failures.
Please consider applying the attached patch (applied in Debian).
Patch 197585, "add missing declarations and #includes":