diff options
Diffstat (limited to 'recipes-networking/openvswitch/openvswitch-git/0002-Define-WAIT_ANY-if-not-provided-by-system.patch')
| -rw-r--r-- | recipes-networking/openvswitch/openvswitch-git/0002-Define-WAIT_ANY-if-not-provided-by-system.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes-networking/openvswitch/openvswitch-git/0002-Define-WAIT_ANY-if-not-provided-by-system.patch b/recipes-networking/openvswitch/openvswitch-git/0002-Define-WAIT_ANY-if-not-provided-by-system.patch new file mode 100644 index 00000000..e44ffdaf --- /dev/null +++ b/recipes-networking/openvswitch/openvswitch-git/0002-Define-WAIT_ANY-if-not-provided-by-system.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From 803bde12d32d16eefeae03422a0ac682e0601c43 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 20 Mar 2017 12:13:30 -0700 | ||
| 4 | Subject: [PATCH 2/2] Define WAIT_ANY if not provided by system | ||
| 5 | |||
| 6 | POSIX does not define it and uses -1 directly | ||
| 7 | some libc do not have this definitions | ||
| 8 | |||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | tests/test-ovn.c | 4 ++++ | ||
| 12 | 1 file changed, 4 insertions(+) | ||
| 13 | |||
| 14 | diff --git a/tests/test-ovn.c b/tests/test-ovn.c | ||
| 15 | index 2e82a6f0d..76e7db9fb 100644 | ||
| 16 | --- a/tests/test-ovn.c | ||
| 17 | +++ b/tests/test-ovn.c | ||
| 18 | @@ -37,6 +37,10 @@ | ||
| 19 | #include "simap.h" | ||
| 20 | #include "util.h" | ||
| 21 | |||
| 22 | +#ifndef WAIT_ANY | ||
| 23 | +# define WAIT_ANY (-1) /* Any process. */ | ||
| 24 | +#endif | ||
| 25 | + | ||
| 26 | /* --relops: Bitmap of the relational operators to test, in exhaustive test. */ | ||
| 27 | static unsigned int test_relops; | ||
| 28 | |||
| 29 | -- | ||
| 30 | 2.12.0 | ||
| 31 | |||
