/* <proc_service.h> replacement for systems that don't have it.
- Copyright (C) 2000-2013 Free Software Foundation, Inc.
+ Copyright (C) 2000-2017 Free Software Foundation, Inc.
This file is part of GDB.
#include <sys/types.h>
+#include "gregset.h"
+
#ifdef HAVE_PROC_SERVICE_H
+
+/* glibc's proc_service.h doesn't wrap itself with extern "C". Need
+ to do it ourselves. */
+EXTERN_C_PUSH
+
#include <proc_service.h>
+EXTERN_C_POP
+
#else /* HAVE_PROC_SERVICE_H */
/* The following fallback definitions have been imported and adjusted
#include <sys/procfs.h>
#endif
-#include "gregset.h"
+EXTERN_C_PUSH
/* Functions in this interface return one of these status codes. */
typedef enum
/* Fetch the special per-thread address associated with the given LWP.
This call is only used on a few platforms (most use a normal register).
The meaning of the `int' parameter is machine-dependent. */
-extern ps_err_e ps_get_thread_area (const struct ps_prochandle *,
+extern ps_err_e ps_get_thread_area (struct ps_prochandle *,
lwpid_t, int, psaddr_t *);
/* Log a message (sends to gdb_stderr). */
extern void ps_plog (const char *fmt, ...);
+EXTERN_C_POP
+
#endif /* HAVE_PROC_SERVICE_H */
/* Fix-up some broken systems. */