[Spice-devel] [PATCH][spice-server] tests: Fix build on Hurd

Christophe Fergeau cfergeau at redhat.com
Thu Mar 5 02:54:02 PST 2015


On Tue, Feb 24, 2015 at 03:24:52PM +0100, Fabiano FidĂȘncio wrote:
> As PATH_MAX is not defined on Hurd, let's check for it and define
> whenever it is necessary.
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=74313
> ---
>  server/tests/test_display_base.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c
> index 1c909fb..60cb3b2 100644
> --- a/server/tests/test_display_base.c
> +++ b/server/tests/test_display_base.c
> @@ -17,6 +17,10 @@
>  #include "red_channel.h"
>  #include "test_util.h"
>  
> +#ifndef PATH_MAX
> +#define PATH_MAX 4096
> +#endif

Seems people really don't like PATH_MAX
https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
but here it's just in a test program, so not really important, ACK.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150305/76753011/attachment.sig>


More information about the Spice-devel mailing list