summaryrefslogtreecommitdiff
path: root/include/windows
diff options
context:
space:
mode:
authorAlin Serdean <aserdean@cloudbasesolutions.com>2017-02-06 04:41:40 +0000
committerGurucharan Shetty <guru@ovn.org>2017-03-07 13:32:21 -0800
commitdc4be6562d375f059ddaab190c62d15e1379e223 (patch)
treedcb0c58eb123044188d124582cdbd2ac1c4147b2 /include/windows
parent1b92d3141872c72396e61f5af025922d3207457a (diff)
downloadopenvswitch-dc4be6562d375f059ddaab190c62d15e1379e223.tar.gz
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>
Diffstat (limited to 'include/windows')
-rw-r--r--include/windows/sys/resource.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/windows/sys/resource.h b/include/windows/sys/resource.h
index d4628f259..d8f2607b4 100644
--- a/include/windows/sys/resource.h
+++ b/include/windows/sys/resource.h
@@ -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 */