summaryrefslogtreecommitdiff
path: root/openbsd-compat/base64.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-02-24 15:45:42 +1100
committerDamien Miller <djm@mindrot.org>2003-02-24 15:45:42 +1100
commitfe1f14375a6a739fa662b4a9d5e9744bff9716eb (patch)
tree55fffb9d77e432a4a07bcf62a0f941b3e3f8449b /openbsd-compat/base64.h
parent1a3ccb07c5709672d327afefd7fb6971e96b1ef7 (diff)
- (djm) Bug #456: Support for NEC SX6 with Unicos; from wendyp@cray.com
Diffstat (limited to 'openbsd-compat/base64.h')
-rw-r--r--openbsd-compat/base64.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/openbsd-compat/base64.h b/openbsd-compat/base64.h
index c92e70ea..72db3ffc 100644
--- a/openbsd-compat/base64.h
+++ b/openbsd-compat/base64.h
@@ -1,4 +1,4 @@
-/* $Id: base64.h,v 1.3 2002/02/26 16:59:59 stevesk Exp $ */
+/* $Id: base64.h,v 1.4 2003/02/24 04:45:43 djm Exp $ */
#ifndef _BSD_BASE64_H
#define _BSD_BASE64_H
@@ -9,10 +9,15 @@
# ifndef HAVE_B64_NTOP
int b64_ntop(u_char const *src, size_t srclength, char *target,
size_t targsize);
-int b64_pton(char const *src, u_char *target, size_t targsize);
# endif /* !HAVE_B64_NTOP */
# define __b64_ntop b64_ntop
-# define __b64_pton b64_pton
#endif /* HAVE___B64_NTOP */
+#ifndef HAVE___B64_PTON
+# ifndef HAVE_B64_PTON
+int b64_pton(char const *src, u_char *target, size_t targsize);
+# endif /* !HAVE_B64_PTON */
+# define __b64_pton b64_pton
+#endif /* HAVE___B64_PTON */
+
#endif /* _BSD_BASE64_H */