diff options
author | cy <cy@FreeBSD.org> | 2020-02-23 12:09:45 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2020-02-23 12:09:45 +0800 |
commit | bdc61c7636e46ffe6ce87151bdf3f4a4fe9344fb (patch) | |
tree | e58c1fb031b1e6baf7930d2f81c96dda20876bd0 | |
parent | 585cc5caec229378160be8fa6286c1589a26237e (diff) | |
download | freebsd-ports-gnome-bdc61c7636e46ffe6ce87151bdf3f4a4fe9344fb.tar.gz freebsd-ports-gnome-bdc61c7636e46ffe6ce87151bdf3f4a4fe9344fb.tar.zst freebsd-ports-gnome-bdc61c7636e46ffe6ce87151bdf3f4a4fe9344fb.zip |
Fix i386 build.
-rw-r--r-- | shells/ksh93-devel/files/patch-src_lib_libast_features_common | 38 | ||||
-rw-r--r-- | shells/ksh93/files/patch-src_lib_libast_features_common | 38 |
2 files changed, 76 insertions, 0 deletions
diff --git a/shells/ksh93-devel/files/patch-src_lib_libast_features_common b/shells/ksh93-devel/files/patch-src_lib_libast_features_common new file mode 100644 index 000000000000..60007aea5563 --- /dev/null +++ b/shells/ksh93-devel/files/patch-src_lib_libast_features_common @@ -0,0 +1,38 @@ +--- src/lib/libast/features/common.orig 2017-11-09 11:01:26.000000000 -0800 ++++ src/lib/libast/features/common 2020-02-22 20:00:11.166985000 -0800 +@@ -518,29 +518,12 @@ + printf("#include <varargs.h>\n"); + printf("#endif\n"); + printf("#endif\n"); +- #if TRY == 4 +- printf("#define va_listref(p) (&(p))\t"); +- printf("/* pass va_list to varargs function */\n"); +- printf("#define va_listval(p) (*(p))\t"); +- printf("/* retrieve va_list from va_arg(ap,va_listarg) */\n"); +- printf("#define va_listarg va_list*\t"); +- printf("/* va_arg() va_list type */\n"); +- #else +- varyfunny(&r); +- printf("#define va_listref(p) (p)\t"); +- printf("/* pass va_list to varargs function */\n"); +- if (sizeof(va_list) > sizeof(void*)) +- printf("#define va_listval(p) (*(p))\t"); +- else +- printf("#define va_listval(p) (p)\t"); +- printf("/* retrieve va_list from va_arg(ap,va_listarg) */\n"); +- #if TRY == 2 +- printf("#define va_listarg va_list*\t"); +- #else +- printf("#define va_listarg va_list\t"); +- #endif /*TRY == 2*/ +- printf("/* va_arg() va_list type */\n"); +- #endif /*TRY == 4*/ ++ printf("#define va_listref(p) (&(p))\t"); ++ printf("/* pass va_list to varargs function */\n"); ++ printf("#define va_listval(p) (*(p))\t"); ++ printf("/* retrieve va_list from va_arg(ap,va_listarg) */\n"); ++ printf("#define va_listarg va_list*\t"); ++ printf("/* va_arg() va_list type */\n"); + + #if _UWIN + printf("#ifndef va_copy\n"); diff --git a/shells/ksh93/files/patch-src_lib_libast_features_common b/shells/ksh93/files/patch-src_lib_libast_features_common new file mode 100644 index 000000000000..60007aea5563 --- /dev/null +++ b/shells/ksh93/files/patch-src_lib_libast_features_common @@ -0,0 +1,38 @@ +--- src/lib/libast/features/common.orig 2017-11-09 11:01:26.000000000 -0800 ++++ src/lib/libast/features/common 2020-02-22 20:00:11.166985000 -0800 +@@ -518,29 +518,12 @@ + printf("#include <varargs.h>\n"); + printf("#endif\n"); + printf("#endif\n"); +- #if TRY == 4 +- printf("#define va_listref(p) (&(p))\t"); +- printf("/* pass va_list to varargs function */\n"); +- printf("#define va_listval(p) (*(p))\t"); +- printf("/* retrieve va_list from va_arg(ap,va_listarg) */\n"); +- printf("#define va_listarg va_list*\t"); +- printf("/* va_arg() va_list type */\n"); +- #else +- varyfunny(&r); +- printf("#define va_listref(p) (p)\t"); +- printf("/* pass va_list to varargs function */\n"); +- if (sizeof(va_list) > sizeof(void*)) +- printf("#define va_listval(p) (*(p))\t"); +- else +- printf("#define va_listval(p) (p)\t"); +- printf("/* retrieve va_list from va_arg(ap,va_listarg) */\n"); +- #if TRY == 2 +- printf("#define va_listarg va_list*\t"); +- #else +- printf("#define va_listarg va_list\t"); +- #endif /*TRY == 2*/ +- printf("/* va_arg() va_list type */\n"); +- #endif /*TRY == 4*/ ++ printf("#define va_listref(p) (&(p))\t"); ++ printf("/* pass va_list to varargs function */\n"); ++ printf("#define va_listval(p) (*(p))\t"); ++ printf("/* retrieve va_list from va_arg(ap,va_listarg) */\n"); ++ printf("#define va_listarg va_list*\t"); ++ printf("/* va_arg() va_list type */\n"); + + #if _UWIN + printf("#ifndef va_copy\n"); |