Hi Everyone,

My apologies for this question. I don't have a test rig setup with
MinGW. I'm finding hits online when searching the compile error, but I
did not find a canonical answer from the MinGW folks.

We have a user reporting:

    C:/msys64/home/.../cpu.cpp:107:28: error: 'sigset_t' was not
declared in this scope
      if (sigprocmask(0, NULL, (sigset_t*)&oldMask))
                            ^
    C:/msys64/home/.../cpu.cpp:107:37: error: expected
primary-expression before ')' token
      if (sigprocmask(0, NULL, (sigset_t*)&oldMask))

The Open Group (Posix) tells us the file to include for 'sigset_t' is
'<signal.h> (http://pubs.opengroup.org/onlinepubs/7908799/xsh/signal.h.html).
The source file cpu.cpp includes <signal.h>, so the structure should
be defined.

My question is, does MinGW support Signals and sigset_t ? If so, what
header file should be included for the necessary definitions?

Or does MinGQW use SEH and try/except/finally?

Thanks in advance.

------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to