[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH hurd 27/30] hurd: add intranpayload functions to all hurd typ
From: |
Samuel Thibault |
Subject: |
Re: [PATCH hurd 27/30] hurd: add intranpayload functions to all hurd types |
Date: |
Fri, 12 Dec 2014 01:08:44 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Thu 27 Nov 2014 14:19:07 +0100, a écrit :
> +#ifdef HURD_DEFAULT_PAYLOAD_TO_PORT
> +#if HURD_DEFAULT_PAYLOAD_TO_PORT
> +/* Any non-numeric value will fail this test. If 1 (or any number) is
> + given, do not inject the default translator function. */
> +#undef HURD_DEFAULT_PAYLOAD_TO_PORT
> +#endif
> +#else
> + import <hurd/ports.h>;
> +#define HURD_DEFAULT_PAYLOAD_TO_PORT ports_payload_get_name
> +#endif
We're now getting it from libc:
/usr/src/glibc-2.19/build-tree/hurd-i386-libc/hurd/libhurduser_pic.a(msg_server.os):
In function `_Xmsg_describe_ports':
/usr/src/glibc-2.19/build-tree/hurd-i386-libc/hurd/./hurd/msg_server.c:2071:
undefined reference to `ports_payload_get_name'
Perhaps we should revert the logic: not define any
HURD_DEFAULT_PAYLOAD_TO_PORT by default, and have servers which want to
enable the payload optimization to define it?
Samuel