about summary refs log tree commit diff
path: root/sysdeps/generic/sigcontextinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/sigcontextinfo.h')
-rw-r--r--sysdeps/generic/sigcontextinfo.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sysdeps/generic/sigcontextinfo.h b/sysdeps/generic/sigcontextinfo.h
index ff63a09043..92c0328fb7 100644
--- a/sysdeps/generic/sigcontextinfo.h
+++ b/sysdeps/generic/sigcontextinfo.h
@@ -16,6 +16,15 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#ifndef _SIGCONTEXTINFO_H
+#define _SIGCONTEXTINFO_H
+
 /* In general we cannot provide any information.  */
 #define SIGCONTEXT struct sigcontext *
-#define GET_PC(ctx)	((void *) 0)
+static inline uintptr_t
+sigcontext_get_pc (const struct sigcontext *ctx)
+{
+  return 0;
+}
+
+#endif