Date: Tue, 04 Jun 2013 14:41:38 +0200 From: John Marino <gnugcc@marino.st> To: freebsd-ports@freebsd.org Subject: Re: Change when using gcc48 Message-ID: <51ADE082.1000606@marino.st> In-Reply-To: <51ADCED5.8000605@ShaneWare.Biz> References: <51ADCED5.8000605@ShaneWare.Biz>
next in thread | previous in thread | raw e-mail | index | archive | help
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. :) John
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51ADE082.1000606>