HTTP/2 200
date: Thu, 31 Jul 2025 12:50:52 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/ksh93/ksh.git
etag: W/"2a1bcac3d8e9b3dd231a223a1d1221fa"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=qOUMSLXkJGwzZTtndokrZ%2BTVa6J6IVintjbGVLAjNR9aDdpSJVRjMEBFnM7pmvxMfoCZUDRvaQZ0ti3a9TVCIB7UhQP3zX5S2IAEEXhH58GGo7BHQdByAY%2BHbZ0Jd40izUE09J1LfyTu4b5KbhqW6f0yMUNS7br0dY9pvcASEWxZUTpMysGK6Z7FgYkJPsu8AZa%2FOsVsxZjBj3JIblsEwzRMC3nKk%2BDWVrMUQX4jO6WU8aoxCVy1b2hGDOw6g6syedTSTYD4XDb6S1X1knOdLQ%3D%3D--UCr9%2Fbq%2F4gk6aaA8--T6ILzZvLSkkZZBDlAPmWlg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2130290913.1753966251; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 12:50:51 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 12:50:51 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B0C0:1E01C6:A70FFB:C61AEA:688B66AB
Fix compile when using tcc >0.9.27 (#238) · ksh93/ksh@22e044c · GitHub
File tree Expand file tree Collapse file tree 9 files changed +20
-15
lines changed Expand file tree Collapse file tree 9 files changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ make install
37
37
meta FEATURE/pty features/%>FEATURE/% features/pty pty
38
38
make features/pty
39
39
done features/pty
40
- exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} ${LDFLAGS} -lm " ref ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libast} ${mam_libcmd} : run features/pty
40
+ exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libast} ${mam_libcmd} : run features/pty
41
41
done FEATURE/pty generated
42
42
make ${PACKAGE_ast_INCLUDE}/ast_time.h implicit
43
43
done ${PACKAGE_ast_INCLUDE}/ast_time.h
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ lib openpty,_getpty,ptsname -lutil
13
13
lib grantpt,unlockpt,posix_openpt stdlib.h
14
14
lib cfmakeraw termios.h
15
15
16
- tst - output{
16
+ tst - -lm output{
17
17
#include <fcntl.h>
18
18
#if _lib_ptsname
19
19
#include <stdlib.h>
Original file line number Diff line number Diff line change @@ -34,11 +34,7 @@ NoN(atexit)
34
34
35
35
#else
36
36
37
- #if _lib_onexit || _lib_on_exit
38
-
39
- #if !_lib_onexit
40
- #define onexit on_exit
41
- #endif
37
+ #if _lib_onexit
42
38
43
39
extern int onexit (void (* )(void ));
44
40
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ lib getopt,getsubopt,getopt_long,getopt_long_only
29
29
lib glob,index,iswblank,iswctype,killpg,link,localeconv,madvise
30
30
lib mbtowc,mbrtowc,memalign,memchr,memcpy,memdup,memmove,memset
31
31
lib mkdir,mkfifo,mktemp,mktime
32
- lib mount,on_exit, onexit,opendir,pathconf
32
+ lib mount,onexit,opendir,pathconf
33
33
lib readlink,remove,rename,rewinddir,rindex,rmdir,setlocale
34
34
lib setpgid,setpgrp,setpgrp2,setreuid,setsid,setuid,sigaction
35
35
lib sigprocmask,sigsetmask,sigunblock,sigvec,socketpair
Original file line number Diff line number Diff line change @@ -78,6 +78,19 @@ struct _sfio_s;
78
78
#endif
79
79
#endif
80
80
81
+ /*
82
+ * tcc on FreeBSD: Avoid using nonexistent math
83
+ * builtins by pretending to be an ancient gcc.
84
+ */
85
+ #if __TINYC__ && __GNUC__ >= 3 && __FreeBSD__
86
+ #undef __GNUC__
87
+ #undef __GNUC_MINOR__
88
+ #undef __GNUC_PATCHLEVEL__
89
+ #define __GNUC__ 2
90
+ #define __GNUC_MINOR__ 95
91
+ #define __GNUC_PATCHLEVEL__ 3
92
+ #endif
93
+
81
94
/*
82
95
* exit() support -- this matches shell exit codes
83
96
*/
Original file line number Diff line number Diff line change @@ -1040,12 +1040,8 @@ extern Void_t* F1(_ast_valloc, size_t,n) { return valloc(n); }
1040
1040
1041
1041
#if !_UWIN
1042
1042
1043
- #if !_malloc_hook
1044
-
1045
1043
#include <malloc.h>
1046
1044
1047
- #endif
1048
-
1049
1045
typedef struct mallinfo Mallinfo_t ;
1050
1046
typedef struct mstats Mstats_t ;
1051
1047
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ int type;
93
93
return type ;
94
94
}
95
95
96
- #endif /* _lib_onexit || _lib_on_exit */
96
+ #endif /* _lib_onexit */
97
97
98
98
#endif /*!PACKAGE_ast*/
99
99
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ make install
154
154
done features/dll
155
155
bind -ldl dontcare
156
156
bind -last
157
- exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} ${LDFLAGS} -lm " ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdl} ${mam_libast} : run features/dll
157
+ exec - iffe ${IFFEFLAGS} -v -c "${CC} ${mam_cc_FLAGS} ${KSH_RELFLAGS} ${CCFLAGS} ${LDFLAGS}" ref ${mam_cc_L+-L.} ${mam_cc_L+-L${INSTALLROOT}/lib} -I${PACKAGE_ast_INCLUDE} -I${INSTALLROOT}/include ${mam_libdl} ${mam_libast} : run features/dll
158
158
done FEATURE/dll generated
159
159
exec - cmp 2>/dev/null -s FEATURE/dll dlldefs.h || { rm -f dlldefs.h; silent test -d . || mkdir .; cp FEATURE/dll dlldefs.h; }
160
160
done dlldefs.h generated
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ tst run{
74
74
esac
75
75
echo "#define _DLL_NEXT_PATH \"$lib\""
76
76
}end
77
- tst - output{
77
+ tst - -lm output{
78
78
#include <math.h>
79
79
#if defined(__MVS__) && !defined(__SUSV3)
80
80
#define __SUSV3 1
You can’t perform that action at this time.
0 commit comments