Skip to content

Commit

Permalink
Make include/unistd.h suitable for C++ test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan Simpson authored and Ulrich Drepper committed Jul 23, 2009
1 parent 9b6bf8a commit 30a2dfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
2009-07-23 Ulrich Drepper <drepper@redhat.com>

[BZ #10416]
* include/unistd.h: Make header file suitable for C++ test cases.
Patch by Duncan Simpson <dps@simpson.demon.co.uk>.

* sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
stack alignment in the exit code.

Expand Down
4 changes: 4 additions & 0 deletions include/unistd.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef _UNISTD_H
# include <posix/unistd.h>

__BEGIN_DECLS

libc_hidden_proto (_exit, __noreturn__)
libc_hidden_proto (alarm)
libc_hidden_proto (confstr)
Expand Down Expand Up @@ -174,4 +176,6 @@ extern int __have_sock_cloexec;
unless it is really necessary. */
#define __have_pipe2 __have_sock_cloexec

__END_DECLS

#endif

0 comments on commit 30a2dfd

Please sign in to comment.