mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
bash port
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
diff -ru bash-5.1/externs.h bash-5.1-patched/externs.h
|
||||
--- bash-5.1/externs.h 2020-05-27 11:36:41.000000000 -0300
|
||||
+++ bash-5.1-patched/externs.h 2022-08-20 18:54:03.346557110 -0300
|
||||
@@ -290,7 +290,7 @@
|
||||
#endif /* !HAVE_GETDTABLESIZE */
|
||||
|
||||
#if !defined (HAVE_GETHOSTNAME)
|
||||
-extern int gethostname PARAMS((char *, int));
|
||||
+extern int gethostname PARAMS((char *, size_t));
|
||||
#endif /* !HAVE_GETHOSTNAME */
|
||||
|
||||
extern int getmaxgroups PARAMS((void));
|
||||
diff -ru bash-5.1/subst.c bash-5.1-patched/subst.c
|
||||
--- bash-5.1/subst.c 2020-11-16 12:33:15.000000000 -0300
|
||||
+++ bash-5.1-patched/subst.c 2022-08-20 19:06:46.039884500 -0300
|
||||
@@ -32,6 +32,7 @@
|
||||
#endif
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
+#include <limits.h>
|
||||
|
||||
#if defined (HAVE_UNISTD_H)
|
||||
# include <unistd.h>
|
||||
diff -ru bash-5.1/support/config.sub bash-5.1-patched/support/config.sub
|
||||
--- bash-5.1/support/config.sub 2020-11-18 16:40:12.000000000 -0300
|
||||
+++ bash-5.1-patched/support/config.sub 2022-08-20 18:20:06.006572931 -0300
|
||||
@@ -1720,7 +1720,7 @@
|
||||
| skyos* | haiku* | rdos* | toppers* | drops* | es* \
|
||||
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
|
||||
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
|
||||
- | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx*)
|
||||
+ | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | astral*)
|
||||
;;
|
||||
# This one is extra strict with allowed versions
|
||||
sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
|
||||
diff -ru bash-5.1/support/shobj-conf bash-5.1-patched/support/shobj-conf
|
||||
--- bash-5.1/support/shobj-conf 2019-12-13 11:51:17.000000000 -0300
|
||||
+++ bash-5.1-patched/support/shobj-conf 2022-09-14 21:09:42.592996760 -0300
|
||||
@@ -79,6 +79,9 @@
|
||||
SHOBJ_LDFLAGS='-shared -bglobalized -unres_symbols ignore'
|
||||
;;
|
||||
|
||||
+astral*-*gcc*)
|
||||
+ SHOBJ_CFLAGS=-fpic
|
||||
+ ;;
|
||||
sunos4*-*gcc*)
|
||||
SHOBJ_CFLAGS=-fpic
|
||||
SHOBJ_LD=/usr/bin/ld
|
||||
Reference in New Issue
Block a user