aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
Diffstat (limited to 'epan')
-rw-r--r--epan/app_mem_usage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/app_mem_usage.c b/epan/app_mem_usage.c
index c5db894bad..d35d0bf99e 100644
--- a/epan/app_mem_usage.c
+++ b/epan/app_mem_usage.c
@@ -42,6 +42,7 @@
# include <fcntl.h>
#endif
+#include "wsutil/file_util.h"
#include "app_mem_usage.h"
#define MAX_COMPONENTS 16
@@ -96,7 +97,7 @@ linux_get_memory(gsize *ptotal, gsize *prss)
g_snprintf(path, sizeof(path), "/proc/%d/statm", getpid());
- fd = open(path, O_RDONLY);
+ fd = ws_open(path, O_RDONLY);
/* XXX, fallback to some other /proc file ? */
}