X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tools-for-build%2Fgrovel-headers.c;h=1b61f98e8938704d96b1e5e10e0a0df82e0874d1;hb=ab5427d31da2bd95805cccc8e47b8f43d3dd606d;hp=421f03c9432e5311ccbed52505ce1c187fa7fa65;hpb=7c75cd363da90afe334e936aad2b63437ea5905d;p=sbcl.git diff --git a/tools-for-build/grovel-headers.c b/tools-for-build/grovel-headers.c index 421f03c..1b61f98 100644 --- a/tools-for-build/grovel-headers.c +++ b/tools-for-build/grovel-headers.c @@ -32,16 +32,14 @@ #include #undef boolean #else + #include + #include #include #include #include #include #include - #ifdef LISP_FEATURE_DLSHIM - #include "../src/runtime/darwin-dlshim.h" - #else - #include - #endif + #include #endif #include @@ -241,6 +239,9 @@ main(int argc, char *argv[]) DEFTYPE("wst-nlink-t", wst_nlink_t); DEFTYPE("wst-uid-t", wst_uid_t); DEFTYPE("wst-gid-t", wst_gid_t); + + /* KLUDGE */ + defconstant("fd-setsize", 1024); printf("\n"); #else printf("(in-package \"SB!ALIEN\")\n\n"); @@ -253,6 +254,16 @@ main(int argc, char *argv[]) printf("(in-package \"SB!UNIX\")\n\n"); + printf(";;; select()\n"); + defconstant("fd-setsize", FD_SETSIZE); + + printf(";;; poll()\n"); + defconstant("pollin", POLLIN); + defconstant("pollout", POLLOUT); + defconstant("pollpri", POLLPRI); + defconstant("pollhup", POLLHUP); + DEFTYPE("nfds-t", nfds_t); + printf(";;; langinfo\n"); defconstant("codeset", CODESET);