summarylogtreecommitdiffstats
path: root/001-ftruncate.patch
blob: 53933653d238aa2db36c9117a3c62e2aba440dfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/MPI/mltaln9_mpi.c
+++ b/MPI/mltaln9_mpi.c
@@ -1,5 +1,7 @@
 #include "mltaln.h"
 #include <mpi.h>
+#include <unistd.h>
+#include <sys/types.h>
 
 #ifdef enableatomic
 #include <stdatomic.h>
@@ -46,6 +48,8 @@
 static int lockfd;
 int createshm;
 
+int truncate(const char *path, off_t length);
+int ftruncate(int fd, off_t length);