mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-03 03:13:03 +02:00
retroshare: improve musl patch, thanks @ebfe
This commit is contained in:
parent
6c1446734b
commit
3e4eeab56e
2 changed files with 3 additions and 18 deletions
|
@ -27,28 +27,13 @@
|
||||||
#endif // _STACKTRACE_H_
|
#endif // _STACKTRACE_H_
|
||||||
--- libretroshare/src/util/rsdir.cc.orig 2017-05-21 00:02:56.024215330 +0200
|
--- libretroshare/src/util/rsdir.cc.orig 2017-05-21 00:02:56.024215330 +0200
|
||||||
+++ libretroshare/src/util/rsdir.cc 2017-05-21 00:05:01.129867612 +0200
|
+++ libretroshare/src/util/rsdir.cc 2017-05-21 00:05:01.129867612 +0200
|
||||||
@@ -57,6 +57,25 @@
|
@@ -57,6 +57,10 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+#ifndef __GLIBC__
|
+#ifndef __GLIBC__
|
||||||
+#include <limits.h>
|
+#define canonicalize_file_name(p) realpath(p, NULL)
|
||||||
+#include <string.h>
|
|
||||||
+#include <stdlib.h>
|
|
||||||
+#include <stdio.h>
|
|
||||||
+static char * canonicalize_file_name(const char *path)
|
|
||||||
+{
|
|
||||||
+ char buf[PATH_MAX] = { };
|
|
||||||
+
|
|
||||||
+ snprintf(buf, sizeof(buf) - 1, "%s", path);
|
|
||||||
+
|
|
||||||
+ if (!realpath(path, buf))
|
|
||||||
+ return NULL;
|
|
||||||
+
|
|
||||||
+ return strdup(buf);
|
|
||||||
+}
|
|
||||||
+#endif
|
+#endif
|
||||||
+
|
|
||||||
+
|
+
|
||||||
/****
|
/****
|
||||||
* #define RSDIR_DEBUG 1
|
* #define RSDIR_DEBUG 1
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'retroshare'
|
# Template file for 'retroshare'
|
||||||
pkgname=retroshare
|
pkgname=retroshare
|
||||||
version=0.6.2
|
version=0.6.2
|
||||||
revision=1
|
revision=2
|
||||||
build_style=qmake
|
build_style=qmake
|
||||||
wrksrc="RetroShare-${version}"
|
wrksrc="RetroShare-${version}"
|
||||||
homepage="http://retroshare.github.io"
|
homepage="http://retroshare.github.io"
|
||||||
|
|
Loading…
Add table
Reference in a new issue