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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]