#1032898 wxastrocapture: FTBFS on hppa - no sa_restorer field

#1032898#5
Date:
2023-03-13 17:12:16 UTC
From:
To:
Dear Maintainer,

Build fails here:
g++ -g -DNDEBUG -Os -O2 -W `wx-config --version=3.2 --toolkit=gtk3 --cxxflags` -Wno-ignored-qualifiers -DNOPCH -DNDEBUG -D__WX__  -c wxWebcam/Ftd245IOUX.cpp -o UX/obj/Release/wxWebcam/Ftd245IOUX.o
wxWebcam/Ftd245IOUX.cpp: In member function ‘virtual bool Ftd245IOUX::InitBoard(int)’:
wxWebcam/Ftd245IOUX.cpp:159:9: error: ‘struct sigaction’ has no member named ‘sa_restorer’
  159 |    saio.sa_restorer = NULL;
      |         ^~~~~~~~~~~
make[2]: *** [Makefile:74: UX/obj/Release/wxWebcam/Ftd245IOUX.o] Error 1

Full log:
https://buildd.debian.org/status/fetch.php?pkg=wxastrocapture&arch=hppa&ver=1.8.1%2Bgit20140821.796e1a1%2Bdfsg-2&stamp=1678674935&raw=0

The sa_restorer field is optional.

Build is successful with attached patch.

Regards,
Dave Anglin