try compiling pl-rl

This commit is contained in:
Vitor Santos Costa
2011-02-15 23:45:47 +00:00
parent b902efe21f
commit ef918d8fe4
6 changed files with 338 additions and 216 deletions

View File

@@ -1129,3 +1129,5 @@ extern const PL_extension PL_predicates_from_glob[];
extern const PL_extension PL_predicates_from_write[];
extern const PL_extension PL_predicates_from_read[];

View File

@@ -183,5 +183,26 @@ stripostfix(const char *s, const char *e)
}
#endif
#if HAVE_SIGPROCMASK
#if HAVE_SIGNAL_H
#include <signal.h>
#endif
static inline void
unblockSignal(int sig)
{ sigset_t set;
sigemptyset(&set);
sigaddset(&set, sig);
sigprocmask(SIG_UNBLOCK, &set, NULL);
// DEBUG(1, Sdprintf("Unblocked signal %d\n", sig));
}
#else
static inline void
unblockSignal(int sig)
{
}
#endif
#endif /* PL_YAP_H */