summaryrefslogtreecommitdiff
path: root/mach/mach/mig_support.h
diff options
context:
space:
mode:
Diffstat (limited to 'mach/mach/mig_support.h')
-rw-r--r--mach/mach/mig_support.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/mach/mach/mig_support.h b/mach/mach/mig_support.h
index e876c0980b..56ec6dfab8 100644
--- a/mach/mach/mig_support.h
+++ b/mach/mach/mig_support.h
@@ -66,6 +66,8 @@ extern void mig_reply_setup (const mach_msg_header_t *__request,
/* Idiocy support function. */
extern vm_size_t mig_strncpy (char *__dst, const char *__src, vm_size_t __len);
extern vm_size_t __mig_strncpy (char *__dst, const char *__src, vm_size_t);
+
+#if defined __USE_EXTERN_INLINES && defined _LIBC
__extern_inline vm_size_t
__mig_strncpy (char *__dst, const char *__src, vm_size_t __len)
{
@@ -76,6 +78,7 @@ mig_strncpy (char *__dst, const char *__src, vm_size_t __len)
{
return __mig_strncpy (__dst, __src, __len);
}
+#endif