Skip to content

Instantly share code, notes, and snippets.

@yopito
Last active July 26, 2022 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yopito/fd25b30edcbc762babd9069641a9b86e to your computer and use it in GitHub Desktop.
Save yopito/fd25b30edcbc762babd9069641a9b86e to your computer and use it in GitHub Desktop.
From c58c7da0f17219079a34017014399352fe1e563e Mon Sep 17 00:00:00 2001
From: yopito <pierre.bourgin@free.fr>
Date: Tue, 28 Jun 2022 21:08:45 +0200
Subject: [PATCH] freecad: fix PATH_MAX on musl libc
---
srcpkgs/freecad/patches/153-limits.h-for-musl.patch | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 srcpkgs/freecad/patches/153-limits.h-for-musl.patch
diff --git a/srcpkgs/freecad/patches/153-limits.h-for-musl.patch b/srcpkgs/freecad/patches/153-limits.h-for-musl.patch
new file mode 100644
index 0000000000..59b0ff178e
--- /dev/null
+++ b/srcpkgs/freecad/patches/153-limits.h-for-musl.patch
@@ -0,0 +1,13 @@
+--- a/src/FCConfig.h.ORIG
++++ b/src/FCConfig.h
+@@ -321,4 +321,10 @@
+ //# define _PreComp_ // use precompiled header
+ #endif
+
++#if defined(FC_OS_LINUX) || defined(FC_OS_MACOSX) || defined(FC_OS_BSD)
++#if (!defined(PATH_MAX))
++#include <limits.h>
++#endif
++#endif
++
+ #endif //FC_CONFIG_H
--
2.37.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment