Download raw body.
`got import` segfaults on macOS (got-portable 0.85, 0.86)
> On 15 Mar 2023, at 21:53, Thomas Adam <thomas@xteddy.org> wrote:
>
> Thanks; I will take a look at this later on.
>
Thanks, Thomas.
Stefan's hint led me to this patch. No idea if it's correct, but it makes the
segfault go away.
diff --git a/include/got_compat2.h b/include/got_compat2.h
index ec546e4b..54e01a99 100644
--- a/include/got_compat2.h
+++ b/include/got_compat2.h
@@ -390,7 +390,7 @@ int scan_scaled(char *, long long *);
#define FMT_SCALED_STRSIZE 7 /* minus sign, 4 digits, suffix, null byte */
#endif
-#ifndef HAVE_LIBBSD
+#if !defined(HAVE_LIBBSD) && !defined(__APPLE__)
/* getopt.c */
extern int BSDopterr;
extern int BSDoptind;
Regards,
Carlo
`got import` segfaults on macOS (got-portable 0.85, 0.86)