Acked-by: Sairam Venugopal <[email protected]>
On 2/5/17, 8:41 PM, "[email protected] on behalf of Alin Serdean" <[email protected] on behalf of [email protected]> wrote: >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>. > >Another that we could also do is to move the implementation to >include/windows > >Signed-off-by: Alin Gabriel Serdean <[email protected]> >--- > include/windows/sys/resource.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/include/windows/sys/resource.h b/include/windows/sys/resource.h >index d4628f2..d8f2607 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 */ >-- >2.10.2.windows.1 >_______________________________________________ >dev mailing list >[email protected] >https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.openvswitch.org_mailman_listinfo_ovs-2Ddev&d=DwICAg&c=uilaK90D4TOVoH58JNXRgQ&r=Z6vowHUOjP5ysP_g372c49Nqc1vEKqHKNBkR5Q5Z7uo&m=2qmMMX2ar0lS1DaBjcl2Wai9GZhly6Gx4MEWthzYti8&s=uo8oTXbFBlE-9GA0Jrnii5rk7F-qHmpzz2E0le7pd6o&e= > _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
