void-packages/srcpkgs/partclone/patches/fix-musl-PATH_MAX.patch

27 lines
569 B
Diff

From 63009fb8aebf0c303346c606d60d74e5fae1213c Mon Sep 17 00:00:00 2001
From: maxice8 <thinkabit.ukim@gmail.com>
Date: Mon, 29 Oct 2018 00:13:27 -0300
Subject: [PATCH] src/main.c: add limits.h include for PATH_MAX
fixes compilation with musl libc
---
src/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/main.c b/src/main.c
index 3389f19..1cd9cfd 100644
--- src/main.c
+++ src/main.c
@@ -28,6 +28,7 @@
#include <pthread.h>
#include <assert.h>
#include <dirent.h>
+#include <limits.h>
// SHA1 for torrent info
#include <openssl/sha.h>
--
2.19.1