Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpthread_dbg Add multiple inclusion protection and __{...
details: https://anonhg.NetBSD.org/src/rev/4cec438bd241
branches: trunk
changeset: 348525:4cec438bd241
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Oct 22 18:04:40 2016 +0000
description:
Add multiple inclusion protection and __{BEGIN,END}_DECLS as a native gdb
build uses c++ to build nbsd-thread.c
diffstat:
lib/libpthread_dbg/pthread_dbg.h | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r a806dc1cce44 -r 4cec438bd241 lib/libpthread_dbg/pthread_dbg.h
--- a/lib/libpthread_dbg/pthread_dbg.h Sat Oct 22 14:57:50 2016 +0000
+++ b/lib/libpthread_dbg/pthread_dbg.h Sat Oct 22 18:04:40 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_dbg.h,v 1.6 2011/10/02 18:18:14 christos Exp $ */
+/* $NetBSD: pthread_dbg.h,v 1.7 2016/10/22 18:04:40 skrll Exp $ */
/*-
* Copyright (c) 2002 Wasabi Systems, Inc.
@@ -35,9 +35,14 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef _LIB_PTHREAD_DBG_H
+#define _LIB_PTHREAD_DBG_H
+
#include <sys/types.h>
#include <signal.h>
+__BEGIN_DECLS
+
struct td_proc_st;
struct td_thread_st;
struct td_sync_st;
@@ -188,3 +193,7 @@
/* Restore a suspended thread to its previous state */
int td_thr_resume(td_thread_t *);
+
+__END_DECLS
+
+#endif /* _LIB_PTHREAD_DBG_H */
Home |
Main Index |
Thread Index |
Old Index