2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-17 14:28:02 +00:00
Commit Graph

7 Commits

Author SHA1 Message Date
Gurucharan Shetty
bbaf134dcf windefs: srandom() and random() for windows.
Windows does not have a srandom() and random(). But it does
have a srand() and rand(). We use these functions in sflow code.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
2014-03-17 14:20:49 -07:00
Gurucharan Shetty
f062911fe3 strsep: Copy from netbsd.
Windows does not have a strsep.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
2014-03-17 14:20:49 -07:00
Gurucharan Shetty
31b97ffddd sflow: Include the windefs.h header for windows.
sflow.h uses u_int32_t that needs windefs.h for compilation
in visual studio.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
2014-03-17 14:20:49 -07:00
Gurucharan Shetty
48aa31aa4e windefs: Include the library advapi32.
advapi32 is needed by multiple functions
So include it in a common place.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
2014-03-17 14:20:48 -07:00
Gurucharan Shetty
c2f9ec40ec windefs: Add definition for pid_t.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
2014-03-13 14:25:36 -07:00
Gurucharan Shetty
daa04db864 ovsdb-server: Truncate file for Windows.
There is no ftruncate() in visual studio. There is a _chsize_s()
which has a similar functionality.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
2014-03-12 09:14:54 -07:00
Alin Serdean
e42dfc7225 Add common definitions for Windows builds.
Signed-off-by: Alin Serdean <aserdean at cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-12-27 08:03:52 -08:00