aports/main/openvswitch/0002-fix-wait-any.patch
Stuart Cardall 37504e4898 main/openvswitch: update to 2.6.0
the stack size in lib/ovs-thread.c is now set to 512 bytes by ovs
so the patch is no longer needed.

http://openvswitch.org/releases/NEWS-2.6.0
2016-09-28 23:21:49 +02:00

22 lines
520 B
Diff

POSIX uses -1 and does not define WAIT_ANY so we need to define it if
needed.
See:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/waitpid.html
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_wait.h.html
--- openvswitch-2.6.0/tests/test-ovn.c
+++ openvswitch-2.6.0/tests/test-ovn.c.new
@@ -18,6 +18,11 @@
#include <errno.h>
#include <getopt.h>
#include <sys/wait.h>
+
+#ifndef WAIT_ANY
+#define WAIT_ANY (-1)
+#endif
+
#include "command-line.h"
#include "fatal-signal.h"
#include "flow.h"