summaryrefslogtreecommitdiff
path: root/src/appcore-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/appcore-util.c')
-rw-r--r--src/appcore-util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/appcore-util.c b/src/appcore-util.c
index 8d175bc..f0cb2fe 100644
--- a/src/appcore-util.c
+++ b/src/appcore-util.c
@@ -37,6 +37,7 @@
void stack_trim(void)
{
+#if sizeof(unsigned int) == sizeof(void*)
unsigned int sp;
char buf[BUF_SIZE];
FILE *file;
@@ -62,4 +63,5 @@ void stack_trim(void)
MADV_DONTNEED) < 0)
perror("stack madvise fail");
}
+#endif
}