summaryrefslogtreecommitdiffstats
path: root/ipsec-tools/src/racoon/cftoken_proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'ipsec-tools/src/racoon/cftoken_proto.h')
-rw-r--r--ipsec-tools/src/racoon/cftoken_proto.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/ipsec-tools/src/racoon/cftoken_proto.h b/ipsec-tools/src/racoon/cftoken_proto.h
index 41cb939d..26d1d4d5 100644
--- a/ipsec-tools/src/racoon/cftoken_proto.h
+++ b/ipsec-tools/src/racoon/cftoken_proto.h
@@ -34,6 +34,19 @@
#ifndef _CFTOKEN_PROTO_H
#define _CFTOKEN_PROTO_H
+#ifdef __rtems__
+#define yylval racoonyylval
+#define yyerror racoonyyerror
+#define yywrap racoonyywrap
+/*
+ * No idea where yywrap is defined for racoon on FreeBSD but after compilation it
+ * just is implemented as a function that always returns 1.
+ */
+static inline int yywrap()
+{
+ return 1;
+}
+#endif /* __rtems__ */
extern int yyerrorcount;
extern int yylex __P((void));