X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tools-for-build%2Fgrovel-headers.c;h=5a78c718b4298b8aa84aa1cee756bf86430664c0;hb=69ef68ba7393e3492c1b4a756d1140f71c2922bc;hp=c065542f37ef42778592287e5230eda0c83e0fbb;hpb=3d19a6af1a84e05c22ce0224022d58920cebc13f;p=sbcl.git diff --git a/tools-for-build/grovel-headers.c b/tools-for-build/grovel-headers.c index c065542..5a78c71 100644 --- a/tools-for-build/grovel-headers.c +++ b/tools-for-build/grovel-headers.c @@ -29,6 +29,13 @@ #include #include #include +#ifdef __APPLE_CC__ + #include "../src/runtime/ppc-darwin-dlshim.h" + #include "../src/runtime/ppc-darwin-langinfo.h" +#else + #include + #include +#endif #include "genesis/config.h" @@ -61,8 +68,19 @@ main(int argc, char *argv[]) \n\ "); + printf("(in-package \"SB!ALIEN\")\n\n"); + + printf (";;;flags for dlopen()\n"); + + defconstant ("rtld-lazy", RTLD_LAZY); + defconstant ("rtld-now", RTLD_NOW); + defconstant ("rtld-global", RTLD_GLOBAL); + printf("(in-package \"SB!UNIX\")\n\n"); + printf(";;; langinfo\n"); + defconstant("codeset", CODESET); + printf(";;; types, types, types\n"); DEFTYPE("clock-t", clock_t); DEFTYPE("dev-t", dev_t);