mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
windows: Add definition of getrusage
getrusage is implemented in lib/getrusage-windows.c. This patch just adds its definition to include/windows/sys/resource.h, which serves for files that include <sys/resource.h>. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Sairam Venugopal <vsairam@vmware.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
This commit is contained in:
committed by
Gurucharan Shetty
parent
1b92d31418
commit
dc4be6562d
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014 Nicira, Inc.
|
||||
* Copyright (c) 2014, 2017 Nicira, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -48,4 +48,6 @@ struct rusage {
|
||||
#define RUSAGE_THREAD 3
|
||||
#endif
|
||||
|
||||
int getrusage(int who, struct rusage *usage);
|
||||
|
||||
#endif /* sys/resource.h */
|
||||
|
||||
Reference in New Issue
Block a user