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

Fabiano FidĂȘncio fidencio at redhat.com
Tue Feb 24 06:24:52 PST 2015


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
+
 #define MEM_SLOT_GROUP_ID 0
 
 #define NOTIFY_DISPLAY_BATCH (SINGLE_PART/2)
-- 
2.1.0



More information about the Spice-devel mailing list