opnsense-ports/sysutils/prelink/files/patch-src-get.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

21 lines
466 B
C

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);