Module Name: src
Committed By: skrll
Date: Sat Oct 22 18:04:40 UTC 2016
Modified Files:
src/lib/libpthread_dbg: pthread_dbg.h
Log Message:
Add multiple inclusion protection and __{BEGIN,END}_DECLS as a native gdb
build uses c++ to build nbsd-thread.c
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libpthread_dbg/pthread_dbg.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libpthread_dbg/pthread_dbg.h
diff -u src/lib/libpthread_dbg/pthread_dbg.h:1.6 src/lib/libpthread_dbg/pthread_dbg.h:1.7
--- src/lib/libpthread_dbg/pthread_dbg.h:1.6 Sun Oct 2 18:18:14 2011
+++ src/lib/libpthread_dbg/pthread_dbg.h Sat Oct 22 18:04:40 2016
@@ -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 @@ int td_thr_suspend(td_thread_t *);
/* Restore a suspended thread to its previous state */
int td_thr_resume(td_thread_t *);
+
+__END_DECLS
+
+#endif /* _LIB_PTHREAD_DBG_H */