1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
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"
|