void-packages/srcpkgs/freecad/patches/153-limits.h-for-musl.patch

14 lines
313 B
Diff
Raw Normal View History

--- 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