nix-gh/src
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
..
boost boost::shared_ptr -> std::shared_ptr 2014-03-30 00:49:23 +01:00
bsdiff-4.3 Fix "make dist" 2014-02-01 14:38:12 +01:00
download-via-ssh More cleanup 2015-07-20 01:16:16 +02:00
libexpr lexer: remove catch-all rules hiding real errors 2017-05-01 11:26:44 +02:00
libmain src/libmain/stack.cc: fix 'ucontext' usage on glibc-2.26 2017-09-01 11:12:49 +02:00
libstore OS X sandbox: Store .sb file in $TMPDIR rather than the Nix store 2017-08-30 12:06:31 -05:00
libutil Fix build 2017-07-12 13:00:41 +02:00
nix-collect-garbage Fix compilation error due to missing ENOENT on cygwin 2015-10-18 19:04:24 +00:00
nix-daemon daemon: Add 'buildMode' parameter to 'buildPaths' RPC 2015-12-02 18:14:49 +01:00
nix-env nix-env: respect meta.outputsToInstall 2017-03-21 11:33:21 +01:00
nix-hash Use proper quotes everywhere 2014-08-20 18:03:48 +02:00
nix-instantiate int2String() -> std::to_string() 2015-10-29 13:26:55 +01:00
nix-log2xml nix-log2xml: Handle newlines 2014-08-13 19:06:20 +02:00
nix-prefetch-url Disable TLS verification for builtin fetchurl 2015-10-21 15:14:42 +02:00
nix-store Don't ignore sodium_init() return value 2015-12-22 17:14:04 +01:00