diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 12 | ||||
-rw-r--r-- | unmaintained_fields.patch | 25 |
3 files changed, 37 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = mingw-w64-resource pkgdesc = support for getrusage (mingw-w64) pkgver = 0 - pkgrel = 1 + pkgrel = 2 url = http://sourceforge.net/p/mingw-w64/code/HEAD/tree/experimental/getrusage arch = any license = custom @@ -12,6 +12,8 @@ pkgbase = mingw-w64-resource options = !buildflags options = !strip source = sys::svn+svn://svn.code.sf.net/p/mingw-w64/code/experimental/getrusage + source = unmaintained_fields.patch + md5sums = SKIP md5sums = SKIP pkgname = mingw-w64-resource @@ -2,7 +2,7 @@ pkgname=mingw-w64-resource pkgver=0 -pkgrel=1 +pkgrel=2 pkgdesc='support for getrusage (mingw-w64)' url='http://sourceforge.net/p/mingw-w64/code/HEAD/tree/experimental/getrusage' arch=('any') @@ -10,11 +10,17 @@ license=('custom') depends=('mingw-w64-crt') makedepends=('mingw-w64-gcc' 'subversion') options=('staticlibs' '!buildflags' '!strip') -source=("sys::svn+svn://svn.code.sf.net/p/mingw-w64/code/experimental/getrusage") -md5sums=('SKIP' ) +source=("sys::svn+svn://svn.code.sf.net/p/mingw-w64/code/experimental/getrusage" unmaintained_fields.patch) +md5sums=('SKIP' SKIP) _architectures="i686-w64-mingw32 x86_64-w64-mingw32" +prepare () { + cd sys + # http://man7.org/linux/man-pages/man2/getrusage.2.html + patch -p0 -i "${srcdir}"/unmaintained_fields.patch +} + build() { cd "${srcdir}" for _arch in ${_architectures}; do diff --git a/unmaintained_fields.patch b/unmaintained_fields.patch new file mode 100644 index 000000000000..f74a1ba11e5b --- /dev/null +++ b/unmaintained_fields.patch @@ -0,0 +1,25 @@ +Index: resource.h +=================================================================== +--- resource.h (revision 6638) ++++ resource.h (working copy) +@@ -19,6 +19,20 @@ + struct rusage { + struct timeval ru_utime; ///< User time used. + struct timeval ru_stime; ///< System time used. ++ long ru_maxrss; /* maximum resident set size */ ++ long ru_ixrss; /* integral shared memory size */ ++ long ru_idrss; /* integral unshared data size */ ++ long ru_isrss; /* integral unshared stack size */ ++ long ru_minflt; /* page reclaims (soft page faults) */ ++ long ru_majflt; /* page faults (hard page faults) */ ++ long ru_nswap; /* swaps */ ++ long ru_inblock; /* block input operations */ ++ long ru_oublock; /* block output operations */ ++ long ru_msgsnd; /* IPC messages sent */ ++ long ru_msgrcv; /* IPC messages received */ ++ long ru_nsignals; /* signals received */ ++ long ru_nvcsw; /* voluntary context switches */ ++ long ru_nivcsw; /* involuntary context switches */ + }; + + int getrusage(int who, struct rusage *r_usage); |