aboutsummaryrefslogtreecommitdiffstats
path: root/opie.c
diff options
context:
space:
mode:
Diffstat (limited to 'opie.c')
-rw-r--r--opie.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/opie.c b/opie.c
index b7687d94..395de2dd 100644
--- a/opie.c
+++ b/opie.c
@@ -18,7 +18,13 @@
#include "md5.h"
#ifdef OPIE_ENABLE
+#ifdef __cplusplus
+extern "C" {
+#endif
#include <opie.h>
+#ifdef __cplusplus
+}
+#endif
int do_otp(int sock, char *command, struct query *ctl)
{