about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/dl-sysdep.c4
-rw-r--r--sysdeps/generic/ldsodefs.h7
2 files changed, 6 insertions, 5 deletions
diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c
index ad25dad071..c89ab3c1fb 100644
--- a/sysdeps/generic/dl-sysdep.c
+++ b/sysdeps/generic/dl-sysdep.c
@@ -21,6 +21,7 @@
 #include <elf.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <libintl.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
@@ -309,7 +310,8 @@ _dl_important_hwcaps (const char *platform, size_t platform_len, size_t *sz,
       if (result == NULL)
 	{
 	no_memory:
-	  _dl_signal_error (ENOMEM, NULL, "cannot create capability list");
+	  _dl_signal_error (ENOMEM, NULL, NULL,
+			    N_("cannot create capability list"));
 	}
 
       result[0].str = (char *) result;	/* Does not really matter.  */
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 594738116f..a06ec78cf4 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -292,15 +292,14 @@ extern void _dl_dprintf (int fd, const char *fmt, ...)
    it is a general problem; ERRSTRING is a string describing the specific
    problem.  */
 extern void _dl_signal_error (int errcode, const char *object,
-			      const char *errstring)
+			      const char *occurred, const char *errstring)
      internal_function
      __attribute__ ((__noreturn__));
 
 /* Like _dl_signal_error, but may return when called in the context of
    _dl_receive_error.  */
-extern void _dl_signal_cerror (int errcode,
-			       const char *object,
-			       const char *errstring)
+extern void _dl_signal_cerror (int errcode, const char *object,
+			       const char *occation, const char *errstring)
      internal_function;
 
 /* Call OPERATE, receiving errors from `dl_signal_cerror'.  Unlike