summaryrefslogtreecommitdiff
path: root/misc/librepo/files/patch-librepo_yum.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/librepo/files/patch-librepo_yum.c')
-rw-r--r--misc/librepo/files/patch-librepo_yum.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/misc/librepo/files/patch-librepo_yum.c b/misc/librepo/files/patch-librepo_yum.c
new file mode 100644
index 000000000000..e2350a2501fc
--- /dev/null
+++ b/misc/librepo/files/patch-librepo_yum.c
@@ -0,0 +1,15 @@
+Otherwise realpath(3) declaration isn't found: https://github.com/rpm-software-management/librepo/issues/202
+
+--- librepo/yum.c.orig 2020-09-27 10:18:54 UTC
++++ librepo/yum.c
+@@ -18,8 +18,8 @@
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+-#define _POSIX_SOURCE
+-#define _DEFAULT_SOURCE
++//#define _POSIX_SOURCE
++//#define _DEFAULT_SOURCE
+ #define BITS_IN_BYTE 8
+
+ #include <stdio.h>