diff options
author | joerg <joerg@pkgsrc.org> | 2005-12-18 19:23:04 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-12-18 19:23:04 +0000 |
commit | 657d9ab77301e31df87d88cc7a4a144213012016 (patch) | |
tree | 99837f77514573badb90249c6e39c01f76bcd599 /net/tacacs/patches | |
parent | 0bec83e518f7141a8a41a79d03590c3bbdcd2609 (diff) | |
download | pkgsrc-657d9ab77301e31df87d88cc7a4a144213012016.tar.gz |
Fix errno. Define O_SYNC as O_FSYNC for DragonFly.
Diffstat (limited to 'net/tacacs/patches')
-rw-r--r-- | net/tacacs/patches/patch-ab | 12 | ||||
-rw-r--r-- | net/tacacs/patches/patch-ad | 15 | ||||
-rw-r--r-- | net/tacacs/patches/patch-ae | 13 |
3 files changed, 35 insertions, 5 deletions
diff --git a/net/tacacs/patches/patch-ab b/net/tacacs/patches/patch-ab index 1c853d30f06..da17c651f83 100644 --- a/net/tacacs/patches/patch-ab +++ b/net/tacacs/patches/patch-ab @@ -1,6 +1,6 @@ -$NetBSD: patch-ab,v 1.1.1.1 2000/10/15 17:26:42 rh Exp $ +$NetBSD: patch-ab,v 1.2 2005/12/18 19:23:04 joerg Exp $ ---- tac_plus.h.orig Tue Oct 3 17:11:45 2000 +--- tac_plus.h.orig 2000-06-18 17:26:54.000000000 +0000 +++ tac_plus.h @@ -79,6 +79,7 @@ #define STDLIB_MALLOC @@ -10,7 +10,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2000/10/15 17:26:42 rh Exp $ #define VOIDSIG #endif -@@ -689,10 +690,12 @@ +@@ -689,12 +690,13 @@ extern void parser_init(); extern void set_expiration_status(); /* miscellaneous */ @@ -19,7 +19,9 @@ $NetBSD: patch-ab,v 1.1.1.1 2000/10/15 17:26:42 rh Exp $ extern const char *const sys_errlist[]; #else extern char *sys_errlist[]; -+#endif #endif - extern int errno; +-extern int errno; ++#endif extern int sendauth_fn(); + extern int sendpass_fn(); + extern int enable_fn(); diff --git a/net/tacacs/patches/patch-ad b/net/tacacs/patches/patch-ad new file mode 100644 index 00000000000..80d5077e92c --- /dev/null +++ b/net/tacacs/patches/patch-ad @@ -0,0 +1,15 @@ +$NetBSD: patch-ad,v 1.1 2005/12/18 19:23:04 joerg Exp $ + +--- do_acct.c.orig 2005-12-18 19:15:09.000000000 +0000 ++++ do_acct.c +@@ -20,6 +20,10 @@ + + #include "tac_plus.h" + ++#if defined(__DragonFly__) && !defined(O_SYNC) ++#define O_SYNC O_FSYNC ++#endif ++ + static int acctfd = 0; + + /* Make a acct entry into the accounting file for accounting. diff --git a/net/tacacs/patches/patch-ae b/net/tacacs/patches/patch-ae new file mode 100644 index 00000000000..46dc768e3ed --- /dev/null +++ b/net/tacacs/patches/patch-ae @@ -0,0 +1,13 @@ +$NetBSD: patch-ae,v 1.1 2005/12/18 19:23:04 joerg Exp $ + +--- report.c.orig 2005-12-18 19:16:18.000000000 +0000 ++++ report.c +@@ -143,8 +143,6 @@ va_dcl /* no terminating semi-colon * + + + if (console) { +- extern int errno; +- + if (!ostream) + ostream = fopen("/dev/console", "w"); + |