diff mbox

[ovs-dev] windows: fix broken build

Message ID 20170505202027.12668-1-aserdean@cloudbasesolutions.com
State Not Applicable
Headers show

Commit Message

Alin Serdean May 5, 2017, 8:20 p.m. UTC
The Windows build is failing because EPFNOSUPPORT does not exist.

An equivalent is supplied using the WinSock API: WSAEPFNOSUPPORT.

Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
---
 include/windows/windefs.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Gurucharan Shetty May 5, 2017, 9:11 p.m. UTC | #1
On 5 May 2017 at 13:20, Alin Serdean <aserdean@cloudbasesolutions.com>
wrote:

> The Windows build is failing because EPFNOSUPPORT does not exist.
>
> An equivalent is supplied using the WinSock API: WSAEPFNOSUPPORT.
>
> Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
>

I applied this after changing the commit message to something more
meaningful.


> ---
>  include/windows/windefs.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/include/windows/windefs.h b/include/windows/windefs.h
> index 5137f07..6ed8d87 100644
> --- a/include/windows/windefs.h
> +++ b/include/windows/windefs.h
> @@ -45,4 +45,6 @@ char *strsep(char **stringp, const char *delim);
>  #define srandom srand
>  #define random rand
>
> +#define EPFNOSUPPORT WSAEPFNOSUPPORT
> +
>  #endif /* windefs.h */
> --
> 2.10.2.windows.1
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>
diff mbox

Patch

diff --git a/include/windows/windefs.h b/include/windows/windefs.h
index 5137f07..6ed8d87 100644
--- a/include/windows/windefs.h
+++ b/include/windows/windefs.h
@@ -45,4 +45,6 @@  char *strsep(char **stringp, const char *delim);
 #define srandom srand
 #define random rand
 
+#define EPFNOSUPPORT WSAEPFNOSUPPORT
+
 #endif /* windefs.h */