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

14 lines
346 B
Diff

--- a/src/FCConfig.h
+++ b/src/FCConfig.h
@@ -321,4 +321,10 @@ typedef unsigned __int64 uint64_t;
//# 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