Change when using gcc48

John Marino gnugcc at
Tue Jun 4 12:51:11 UTC 2013

On 6/4/2013 13:26, Shane Ambler wrote:
> As the port maintainer of graphics/openimageio I have come across a
> change when building with gcc48.
> The current version of openimageio compiles fine with clang gcc and
> gcc46, but when compiled with gcc48 the unlink function is not defined.
> The simple solution is to add #include <unistd.h> to the source file
> but why is this only needed for gcc48? Is this an intended change?

I'm pretty sure this is not new for gcc48.
This behavior is seen with gcc47 too.
unistd.h is a big culprit, string.h, <cstring>, etc, also frequently 
need to be added to older codebases.  Yeah, I don't think it's 
accidental.  :)


More information about the freebsd-ports mailing list