clisp/clisp-2.49-personality.patch
OBS User mrdocs d5a36a868b Accepting request 143477 from home:toganm:branches:devel:languages:misc
- Fix build with glibc 2.17 (clisp-glibc-fix.patch)
  * rebase patches to -p1 as stated in the patching guidelines
  * update to libsegsev-2.10

OBS-URL: https://build.opensuse.org/request/show/143477
OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/clisp?expand=0&rev=36
2012-11-28 21:22:46 +00:00

32 lines
795 B
Diff

---
src/_clisp.c | 11 +++++++++++
1 file changed, 11 insertions(+)
--- a/src/_clisp.c
+++ b/src/_clisp.c
@@ -46,6 +46,11 @@
/* Declare stderr, perror(). */
# include <stdio.h>
+#if defined(HAS_PERSONALITY) && (HAS_PERSONALITY > 0)
+/* Declare syscall, PER_LINUX32. */
+# include <sys/personality.h>
+#endif
+
#if defined(WIN32_NATIVE)
# include <windows.h>
int shell_quote (char * dest, const char * source);
@@ -417,6 +422,12 @@ int main (int argc, char* argv[])
return 1;
}
#else
+#if defined(HAS_PERSONALITY) && (HAS_PERSONALITY > 0)
+ if (personality(PER_LINUX32)) {
+ perror(program_name);
+ return 1;
+ }
+#endif /* FEDORA */
execv(executable,new_argv);
{ /* execv() returns only if there was an error. */
int saved_errno = errno;