aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/prelink/files/patch-src-get.c
blob: 3386c4d57c0f8d2d8554126e67ab180ce7204ff9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -Nur src/get.c src/get.c
--- src/get.c   2013-02-19 23:54:34.000000000 +0200
+++ src/get.c   2013-02-19 23:50:31.000000000 +0200
@@ -163,9 +163,17 @@
 
      if (hardlink == NULL)
        {
+#if __LINUX__
          struct stat64 st;
+#else
+         struct stat st;
+#endif
 
+#if __LINUX__
          if (stat64 (filename, &st) < 0)
+#else
+         if (stat (filename, &st) < 0)
+#endif
        {
          error (0, errno, "%s: Could not stat %s",
             info->ent->filename, filename);