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_
|
||||
--- 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
|
||||
@@ -57,6 +57,25 @@
|
||||
@@ -57,6 +57,10 @@
|
||||
#include <errno.h>
|
||||
#endif
|
||||
|
||||
+#ifndef __GLIBC__
|
||||
+#include <limits.h>
|
||||
+#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);
|
||||
+}
|
||||
+#define canonicalize_file_name(p) realpath(p, NULL)
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
/****
|
||||
* #define RSDIR_DEBUG 1
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'retroshare'
|
||||
pkgname=retroshare
|
||||
version=0.6.2
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=qmake
|
||||
wrksrc="RetroShare-${version}"
|
||||
homepage="http://retroshare.github.io"
|
||||
|
|
Loading…
Reference in a new issue