Description: Add missing includes and function prototypes
 This fixes the FTBFS on armhf
Author: Zixing Liu <zixing.liu@canonical.com>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066484
Bug-Ubuntu: https://bugs.launchpad.net/bugs/2061589
Forwarded: no
Last-Update: 2024-04-15
---
Index: tcpxtract/conf.h
===================================================================
--- tcpxtract.orig/conf.h
+++ tcpxtract/conf.h
@@ -24,5 +24,8 @@
 #define CONF_H
 
 extern void config_type(char *, char *, char *, char *);
+int yyparse (void);
+int yyerror(char *s);
+int yylex (void);
 
 #endif /* CONF_H */
Index: tcpxtract/confl.l
===================================================================
--- tcpxtract.orig/confl.l
+++ tcpxtract/confl.l
@@ -20,6 +20,7 @@
    Tcpxtract, a sniffer that extracts files based on headers
    by Nick Harbour
 */
+#include <stdlib.h>
 #include "confy.h"
 %}
 
Index: tcpxtract/confy.y
===================================================================
--- tcpxtract.orig/confy.y
+++ tcpxtract/confy.y
@@ -23,6 +23,7 @@
 
 #include <stdlib.h>
 #include "conf.h"
+#include "confy.h"
 %}
 
 %union {
Index: tcpxtract/tcpxtract.c
===================================================================
--- tcpxtract.orig/tcpxtract.c
+++ tcpxtract/tcpxtract.c
@@ -44,6 +44,7 @@
 
 #include "sessionlist.h"
 #include "util.h"
+#include "conf.h"
 #include "confy.h"
 #include "search.h"

