Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/netpgp/dist/src/lib Minor change (benign...



details:   https://anonhg.NetBSD.org/src/rev/534f11c873bf
branches:  trunk
changeset: 749815:534f11c873bf
user:      agc <agc%NetBSD.org@localhost>
date:      Wed Dec 09 22:10:51 2009 +0000

description:
Minor change (benign everywhere else) to pick up the asprintf(3)
prototype on Linux - caught by Alan Horn.

diffstat:

 crypto/external/bsd/netpgp/dist/src/lib/packet-print.c |  5 ++++-
 crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c      |  4 ++++
 2 files changed, 8 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r e40b36603162 -r 534f11c873bf crypto/external/bsd/netpgp/dist/src/lib/packet-print.c
--- a/crypto/external/bsd/netpgp/dist/src/lib/packet-print.c    Wed Dec 09 21:32:58 2009 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/lib/packet-print.c    Wed Dec 09 22:10:51 2009 +0000
@@ -58,10 +58,13 @@
 
 #if defined(__NetBSD__)
 __COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: packet-print.c,v 1.21 2009/12/05 07:08:19 agc Exp $");
+__RCSID("$NetBSD: packet-print.c,v 1.22 2009/12/09 22:10:51 agc Exp $");
 #endif
 
 #include <string.h>
+
+/* this brings in the prototype for asprintf on Linux */
+#define _GNU_SOURCE
 #include <stdio.h>
 
 #ifdef HAVE_UNISTD_H
diff -r e40b36603162 -r 534f11c873bf crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c
--- a/crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c Wed Dec 09 21:32:58 2009 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c Wed Dec 09 22:10:51 2009 +0000
@@ -37,7 +37,11 @@
 #include <sys/param.h>
 
 #include <inttypes.h>
+
+/* this brings in the prototype for asprintf on Linux */
+#define _GNU_SOURCE
 #include <stdio.h>
+
 #include <stdlib.h>
 #include <string.h>
 



Home | Main Index | Thread Index | Old Index