nix-gh/src/libmain
Sergei Trofimovich 41352d50db
src/libmain/stack.cc: fix 'ucontext' usage on glibc-2.26
Build fails as:

$ make
  CXX    src/libmain/stack.o
src/libmain/stack.cc: In function 'void nix::sigsegvHandler(int, siginfo_t*, void*)':
src/libmain/stack.cc:21:21: error: 'ucontext' was not declared in this scope
     sp = (char *) ((ucontext *) ctx)->uc_mcontext.gregs[REG_RSP];
                     ^~~~~~~~
src/libmain/stack.cc:21:21: note: suggested alternative: 'ucontext_t'
     sp = (char *) ((ucontext *) ctx)->uc_mcontext.gregs[REG_RSP];
                     ^~~~~~~~
                     ucontext_t

It's caused by upstream rename:
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=251287734e89a52da3db682a8241eb6bccc050c9

which basically changes
    typedef struct ucontext {} ucontext_t;
to
    typedef struct ucontext_t {} ucontext_t;

The change uses ucontext_t.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
(cherry picked from commit c9857ef262)
2017-09-01 11:12:49 +02:00
..
local.mk Update spec file 2014-09-18 15:42:01 +02:00
nix-main.pc.in Install some pkgconfig files 2014-09-18 12:00:40 +02:00
shared.cc On macOS, don't use /var/folders for TMPDIR 2017-06-12 18:39:34 +02:00
shared.hh Shut up clang warnings 2015-09-18 01:22:35 +02:00
stack.cc src/libmain/stack.cc: fix 'ucontext' usage on glibc-2.26 2017-09-01 11:12:49 +02:00