aboutsummaryrefslogtreecommitdiff
path: root/contrib/libfido2/openbsd-compat/openbsd-compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libfido2/openbsd-compat/openbsd-compat.h')
-rw-r--r--contrib/libfido2/openbsd-compat/openbsd-compat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/libfido2/openbsd-compat/openbsd-compat.h b/contrib/libfido2/openbsd-compat/openbsd-compat.h
index dc9acec4c0a8..9f1ea3e7cf51 100644
--- a/contrib/libfido2/openbsd-compat/openbsd-compat.h
+++ b/contrib/libfido2/openbsd-compat/openbsd-compat.h
@@ -2,6 +2,7 @@
* Copyright (c) 2018-2021 Yubico AB. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
+ * SPDX-License-Identifier: BSD-2-Clause
*/
#ifndef _OPENBSD_COMPAT_H
@@ -115,4 +116,8 @@ ssize_t getline(char **, size_t *, FILE *);
#define IOCTL_REQ(x) ((int)(x))
#endif
+#if !defined(HAVE_ASPRINTF)
+int asprintf(char **, const char *, ...);
+#endif
+
#endif /* !_OPENBSD_COMPAT_H */