aboutsummaryrefslogtreecommitdiffstats
path: root/misc/libemos/files/patch-interpolation_sharedlib.c
blob: 282793268e4d815e841353295d1927a482683e7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- interpolation/sharedlib.c.orig	2018-12-14 06:44:18 UTC
+++ interpolation/sharedlib.c
@@ -61,8 +61,8 @@ void *share_file(const char* file) {
     char message[1024];
     char path[1024];
 
-    struct  stat64 s;
-    struct  stat64 s2;
+    struct  stat s;
+    struct  stat s2;
     int fd = -1;
     int err = 0;
     void *ptr = NULL;
@@ -183,9 +183,9 @@ void *share_file(const char* file) {
         goto error;
     }
 
-    if(stat64(path,&s))
+    if(stat(path,&s))
     {
-        sprintf(message,"ERR: sharedmem:stat64(%s)",path);
+        sprintf(message,"ERR: sharedmem:stat(%s)",path);
         err = -1;
         goto error;
     }