Files
Marco BeishuizenandZsolt Udvari d357e43d09 sysutils/wmmemload: Fix stack overflow error
Add x11 and xext to USE_XORG.
Add LICENSE_FILE.
Switch to DISTVERSION.

PR:		264669
Reported by:	Arie Bikker <src-2016@bikker.homeunix.net>
Approved by:	submitter is maintainer
2024-10-09 19:29:02 +02:00

20 lines
504 B
C

--- src/mem_freebsd.c.orig 2015-04-17 12:23:47 UTC
+++ src/mem_freebsd.c
@@ -10,6 +10,7 @@
#include "config.h"
#endif
+#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -81,7 +82,7 @@ void mem_getusage(int *per_mem, int *per_swap, const s
if (swap_firsttime ||
(((new_swappgsin > swappgsin) || (new_swappgsout > swappgsout))
&& cur_time > last_time_swap + 1)) {
- int mib[2], n;
+ int mib[3], n;
size_t mibsize, size;
struct xswdev xsw;