Skip to content

Commit 1ebb467

Browse files
committed
Fix build
1 parent 1f9397d commit 1ebb467

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ if test "$PHP_MEMPROF" != "no"; then
7070
AC_DEFINE([HAVE_MALLOC_HOOKS], 1, [Define to 1 if libc supports malloc hooks])
7171
AC_MSG_RESULT(yes)
7272
],[
73+
AC_DEFINE([HAVE_MALLOC_HOOKS], 0, [Define to 1 if libc supports malloc hooks])
7374
AC_MSG_RESULT(no)
7475
])
7576

memprof.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ static char * generate_filename(const char * format) {
759759
slash[0] = DEFAULT_SLASH;
760760
}
761761

762-
spprintf(&filename, 0, "%s%smemprof.%s.%ld", output_dir, slash, format, ts);
762+
spprintf(&filename, 0, "%s%smemprof.%s.%lld", output_dir, slash, format, (long long) ts);
763763

764764
return filename;
765765
}

0 commit comments

Comments
 (0)