看板 DFBSD_bugs 關於我們 聯絡資訊
On Thu, 06 Jan 2005 11:03:37 +0000 Adrian Bocaniciu <a.bocaniciu@computer.org> wrote: > Simon 'corecode' Schubert wrote: > > If you want to be portable, #define POSIX_SOURCE or what it is > > called and don't include sys/* files. > > I do not refer to new code, but to the huge number of existing > *BSD ports. Most of these ports *MUST* include sys/*, net/* etc. > headers, as there is no other way to accomplish their functions. Then they will always be non-portable and will always risk breaking (until those headers are standardized by some body.) This has nothing really to do with macros; this is because C doesn't have namespaces. -Chris