summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2022-06-15 14:10:12 +1000
committerTony Cook <tony@develop-help.com>2022-06-16 09:53:46 +1000
commitbc726283c505c016567b3156526f1aeecc777244 (patch)
tree34aa96ac561632fe0198ae1f5c7301f5fb4f8ad8 /util.c
parent5af5b232a2dc0e42e74fa716f7cf429ba9e386ac (diff)
downloadperl-bc726283c505c016567b3156526f1aeecc777244.tar.gz
allow building with -DPERL_MEM_LOG on Win32
This appears to have been broken for a while, and became more broken with 75acd14e, which made newSV_type() inline. This will also prevent warnings about calls to undeclared functions on systems that don't need symbols to be exported.
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/util.c b/util.c
index 59becd4f68..c75b39d5c8 100644
--- a/util.c
+++ b/util.c
@@ -5153,7 +5153,7 @@ S_mem_log_common(enum mem_log_type mlt, const UV n,
# define MEM_LOG_TIME_FMT "%10d.%06d: "
# define MEM_LOG_TIME_ARG (int)tv.tv_sec, (int)tv.tv_usec
struct timeval tv;
- gettimeofday(&tv, 0);
+ PerlProc_gettimeofday(&tv, 0);
# else
# define MEM_LOG_TIME_FMT "%10d: "
# define MEM_LOG_TIME_ARG (int)when
@@ -5279,6 +5279,8 @@ Perl_mem_log_new_sv(const SV *sv,
const char *filename, const int linenumber,
const char *funcname)
{
+ PERL_ARGS_ASSERT_MEM_LOG_NEW_SV;
+
mem_log_common_if(MLT_NEW_SV, 0, 0, "", sv, NULL, NULL,
filename, linenumber, funcname);
}
@@ -5288,6 +5290,8 @@ Perl_mem_log_del_sv(const SV *sv,
const char *filename, const int linenumber,
const char *funcname)
{
+ PERL_ARGS_ASSERT_MEM_LOG_DEL_SV;
+
mem_log_common_if(MLT_DEL_SV, 0, 0, "", sv, NULL, NULL,
filename, linenumber, funcname);
}