X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tools-for-build%2Fgrovel-headers.c;h=dc5005416de3f9624caca2f4035fc9ffdd9dcb48;hb=e29e584efdc110f14698801ad1004f9a34a3b448;hp=ff81d115cb34237393245aa2e44ccbae102856cf;hpb=96399d44ad75b2ee2e36b14d1e0ac773652e80c1;p=sbcl.git diff --git a/tools-for-build/grovel-headers.c b/tools-for-build/grovel-headers.c index ff81d11..dc50054 100644 --- a/tools-for-build/grovel-headers.c +++ b/tools-for-build/grovel-headers.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "genesis/config.h" @@ -61,6 +62,14 @@ 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(";;; types, types, types\n"); @@ -76,7 +85,7 @@ main(int argc, char *argv[]) DEFTYPE("uid-t", uid_t); printf("\n"); - printf(";;; fcntl.h (or unistd.h on OpenBSD)\n"); + printf(";;; fcntl.h (or unistd.h on OpenBSD and NetBSD)\n"); defconstant("r_ok", R_OK); defconstant("w_ok", W_OK); defconstant("x_ok", X_OK); @@ -160,8 +169,7 @@ main(int argc, char *argv[]) DEFSIGNAL(SIGBUS); DEFSIGNAL(SIGCHLD); DEFSIGNAL(SIGCONT); -/* FIXME: Maybe #ifdef SIGEMT would be a smarter conditional? */ -#if (!(defined LISP_FEATURE_LINUX) || !((defined LISP_FEATURE_PPC) || (defined LISP_FEATURE_X86))) +#ifdef SIGEMT DEFSIGNAL(SIGEMT); #endif DEFSIGNAL(SIGFPE);