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/netpgpverify Add portabi...



details:   https://anonhg.NetBSD.org/src/rev/68cb56743deb
branches:  trunk
changeset: 327574:68cb56743deb
user:      agc <agc%NetBSD.org@localhost>
date:      Tue Mar 11 17:48:31 2014 +0000

description:
Add portability definitions in case they're not already defined

XXX - these need to be consolidated in one single header

diffstat:

 crypto/external/bsd/netpgp/dist/src/netpgpverify/libverify.c |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r 79b2835435e5 -r 68cb56743deb crypto/external/bsd/netpgp/dist/src/netpgpverify/libverify.c
--- a/crypto/external/bsd/netpgp/dist/src/netpgpverify/libverify.c      Tue Mar 11 17:38:48 2014 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/netpgpverify/libverify.c      Tue Mar 11 17:48:31 2014 +0000
@@ -56,6 +56,14 @@
 #define USE_ARG(x)     /*LINTED*/(void)&(x)
 #endif
 
+#ifndef __dead
+#define __dead                         __attribute__((__noreturn__))
+#endif
+
+#ifndef __printflike
+#define __printflike(n, m)             __attribute__((format(printf,n,m)))
+#endif
+
 #define BITS_TO_BYTES(b)               (((b) + (CHAR_BIT - 1)) / CHAR_BIT)
 
 /* packet types */



Home | Main Index | Thread Index | Old Index