mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
patches to build on freebsd 12
- added cc and ar scripts for freebsd12.amd64 - fix for sfio macro SF_FLAGS also being defined for sendfile(2) in socket.h -- fix is to hide the sendfile(2) macro - defined _STDFILE_DECLARED to handle FILE macro incompatibility - added test in std/features/procfs to deal with freebsd kvm interface -- being different from what AST expects (for ps.c) - fix for std/banner.c to clean up main() definition - changed comment in ar.* scripts to match cc.* scripts
This commit is contained in:
parent
a30e7b7fa9
commit
2cf1ffd0f2
9 changed files with 41 additions and 3 deletions
|
@ -4,6 +4,8 @@ sys filio,ioctl
|
|||
lib qfrexp,qldexp
|
||||
key signed
|
||||
|
||||
typ struct.sf_hdtr sys/socket.h
|
||||
|
||||
tst - note{ number of bits in pointer }end output{
|
||||
#include <stdio.h>
|
||||
int
|
||||
|
|
|
@ -6,6 +6,9 @@ set include .
|
|||
cat{
|
||||
#ifndef _AST_WCHAR_H
|
||||
#define _AST_WCHAR_H 1
|
||||
#ifdef __FreeBSD__
|
||||
#define _STDFILE_DECLARED 1
|
||||
#endif
|
||||
}end
|
||||
|
||||
lib mbstowcs,wctomb,wcrtomb,wcslen,wcstombs,wcwidth stdlib.h stdio.h wchar.h
|
||||
|
|
|
@ -151,6 +151,9 @@ struct _sffmt_s
|
|||
#define SF_WCWIDTH 0100000 /* wcwidth display stream */
|
||||
|
||||
#define SF_FLAGS 0177177 /* PUBLIC FLAGS PASSABLE TO SFNEW() */
|
||||
#ifdef _typ_struct_sf_hdtr
|
||||
#define _SF_HIDESFFLAGS 1
|
||||
#endif
|
||||
#define SF_SETS 0177163 /* flags passable to sfset() */
|
||||
|
||||
#ifndef _SF_NO_OBSOLETE
|
||||
|
@ -454,4 +457,8 @@ __INLINE__ ssize_t sfmaxr(ssize_t n, int s) { return __sf_maxr(n,s); }
|
|||
|
||||
#endif /* _SFSTR_H */
|
||||
|
||||
#ifdef _SF_HIDESFFLAGS
|
||||
#undef SF_FLAGS
|
||||
#define SF_FLAGS 0177177 /* PUBLIC FLAGS PASSABLE TO SFNEW() */
|
||||
#endif
|
||||
#endif /* _SFIO_H */
|
||||
|
|
|
@ -1305,4 +1305,9 @@ extern int poll _ARG_((ulong, struct pollfd*, int));
|
|||
|
||||
_END_EXTERNS_
|
||||
|
||||
#ifdef _SF_HIDESFFLAGS
|
||||
#undef SF_FLAGS
|
||||
#define SF_FLAGS 0177177 /* PUBLIC FLAGS PASSABLE TO SFNEW() */
|
||||
#endif
|
||||
|
||||
#endif /*_SFHDR_H*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue