Skip to content

Commit

Permalink
windows: Add definition of getrusage
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Sairam Venugopal <[email protected]>
Signed-off-by: Gurucharan Shetty <[email protected]>
  • Loading branch information
Alin Serdean authored and shettyg committed Mar 7, 2017
1 parent 1b92d31 commit dc4be65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/windows/sys/resource.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -48,4 +48,6 @@ struct rusage {
#define RUSAGE_THREAD 3
#endif

int getrusage(int who, struct rusage *usage);

#endif /* sys/resource.h */

0 comments on commit dc4be65

Please sign in to comment.