ソースを参照

Fix crash by making start and end static: apparently newer versions of libc unmap things at 'end'...

Samuel Thibault 10 年 前
コミット
89b130f6ab
共有1 個のファイルを変更した3 個の追加3 個の削除を含む
  1. 3 3
      tests/main/restart.c

+ 3 - 3
tests/main/restart.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2009, 2010, 2013  Université de Bordeaux 1
+ * Copyright (C) 2009, 2010, 2013-2014  Université de Bordeaux 1
  * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -30,8 +30,8 @@
   #define N	10
 #endif
 
-struct timeval start;
-struct timeval end;
+static struct timeval start;
+static struct timeval end;
 
 int main(int argc, char **argv)
 {