Skip to content

Commit

Permalink
Add multiple inclusion protection to some Mach/i386 internal headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Thibault authored and Roland McGrath committed Feb 16, 2011
1 parent f75286c commit 8e31c82
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
2011-02-16 Samuel Thibault <samuel.thibault@ens-lyon.org>

* sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
protection macro.
* sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
inclusion protection macro.

* stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
SIGRTMIN and SIGRTMAX and print information in that case only when
SIGRTMIN is defined.
Expand Down
5 changes: 5 additions & 0 deletions sysdeps/mach/i386/sysdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */

#ifndef _MACH_I386_SYSDEP_H
#define _MACH_I386_SYSDEP_H 1

/* Defines RTLD_PRIVATE_ERRNO and USE_DL_SYSINFO. */
#include <dl-sysdep.h>
#include <tls.h>
Expand Down Expand Up @@ -64,3 +67,5 @@
#undef ENTRY
#undef ALIGN
#include <sysdeps/unix/i386/sysdep.h>

#endif /* mach/i386/sysdep.h */
5 changes: 5 additions & 0 deletions sysdeps/mach/i386/thread_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */

#ifndef _MACH_I386_THREAD_STATE_H
#define _MACH_I386_THREAD_STATE_H 1

#include <mach/machine/thread_status.h>

#define MACHINE_THREAD_STATE_FLAVOR i386_THREAD_STATE
Expand All @@ -36,3 +39,5 @@ struct machine_thread_all_state
};

#include <sysdeps/mach/thread_state.h>

#endif /* mach/i386/thread_state.h */

0 comments on commit 8e31c82

Please sign in to comment.