Skip to content

Commit

Permalink
Clean up after kernel sigcontext header mess
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jun 22, 2011
1 parent 51f9aa6 commit 6e502e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2011-06-21 Andreas Jaeger <aj@suse.de>

* sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
NULL after inclusion of kernel headers.

2011-06-21 Ulrich Drepper <drepper@gmail.com>

* nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
Expand Down
6 changes: 5 additions & 1 deletion sysdeps/unix/sysv/linux/bits/sigcontext.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
/* Copyright (C) 1996, 1997, 1998, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -26,4 +26,8 @@
# define sigcontext_struct sigcontext

# include <asm/sigcontext.h>

/* The Linux kernel headers redefine NULL wrongly, so cleanup afterwards. */
# define __need_NULL
# include <stddef.h>
#endif

0 comments on commit 6e502e1

Please sign in to comment.