diff options
author | edwin <edwin@FreeBSD.org> | 2002-11-24 07:50:39 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2002-11-24 07:50:39 +0800 |
commit | 343180327ec3be87e1290a44f48d697b571d4991 (patch) | |
tree | 863d67a7112d831795735a3ef9ee0994720ecd79 /net/pmf | |
parent | 56051d5e86ce73d7bd4d6038f32036a9a6447926 (diff) | |
download | freebsd-ports-gnome-343180327ec3be87e1290a44f48d697b571d4991.tar.gz freebsd-ports-gnome-343180327ec3be87e1290a44f48d697b571d4991.tar.zst freebsd-ports-gnome-343180327ec3be87e1290a44f48d697b571d4991.zip |
Bento fix for net/pmf
PR: ports/45656
Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org>
Diffstat (limited to 'net/pmf')
-rw-r--r-- | net/pmf/files/patch-ad | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/net/pmf/files/patch-ad b/net/pmf/files/patch-ad index e40f2721b7a0..b345d105b966 100644 --- a/net/pmf/files/patch-ad +++ b/net/pmf/files/patch-ad @@ -1,6 +1,14 @@ --- main.c.orig Sun Sep 22 12:13:43 1991 +++ main.c Fri Feb 11 04:14:00 2000 -@@ -37,7 +37,7 @@ +@@ -15,6 +15,7 @@ + #include <sgtty.h> + #include <signal.h> + #include <setjmp.h> ++#include <sys/param.h> + #include "safe_malloc.h" + #include "str_galore.h" + #include "config.h" +@@ -37,7 +38,7 @@ extern int stop_printing(); extern int continue_printing(); @@ -9,7 +17,7 @@ #endif /* Longjmp buffer, jump there after error() or CTRL-C */ -@@ -58,7 +58,7 @@ +@@ -58,7 +59,7 @@ ldisplay("\n"); ldisplay("%s", rl_line_buffer); rl_redisplay(count, key); @@ -17,4 +25,16 @@ + _rl_last_c_pos = rl_end; } #endif - + +@@ -191,7 +192,11 @@ + #endif + + if (debug && exitval) { ++ #if defined(__FreeBSD__) && (__FreeBSD_version >= 500035) ++ signal(SIGABRT, SIG_DFL); ++ #else + signal(SIGIOT, SIG_DFL); ++ #endif + abort(); + } + else |