[gdal-dev] SIGPIPE missing due to not including signal.h

Kurt Schwehr schwehr at gmail.com
Sun Nov 1 09:48:11 PST 2015


Patch applied: https://trac.osgeo.org/gdal/changeset/31286

On Sun, Nov 1, 2015 at 9:04 AM, Greg Troxel <gdt at ir.bbn.com> wrote:

>
> Even Rouault <even.rouault at spatialys.com> writes:
>
> > Le dimanche 01 novembre 2015 17:43:35, vous avez écrit :
> >> I am building on netbsd-6 i386 with gcc 4.5.3.
> >>
> >> I got an error about SIGPIPE being undefined.  The man page says that
> >> signal.h is required to be included, and posix agrees:
> >>
> >>   http://pubs.opengroup.org/onlinepubs/9699919799/functions/signal.html
> >>
> >> I couldn't find an include of signal.h; the following patch resolves the
> >> error.
> >
> > Couldn't you try to include signal.h in gdalserver.c only so as to avoid
> > growing cpl_port.h ?
>
> Yes, that works too.  I filed a ticket with a patch.
>
> https://trac.osgeo.org/gdal/ticket/6193
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
--
http://schwehr.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20151101/c8ab5030/attachment.html>


More information about the gdal-dev mailing list