1 From f8079671326e9fd079391d24911a9a8a77f1d6fd Mon Sep 17 00:00:00 2001
2 From: Felix Janda <felix.janda@posteo.de>
3 Date: Sat, 16 May 2015 12:31:58 +0200
4 Subject: [PATCH] ethernetdb.h: Remove C++ specific compiler hint macro _THROW
6 Fixes compilation with musl libc
8 Signed-off-by: Felix Janda <felix.janda@posteo.de>
9 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
10 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
12 Patch status: upstream commit f8079671326e9fd0
14 include/ethernetdb.h | 11 +++++------
15 1 file changed, 5 insertions(+), 6 deletions(-)
17 diff --git a/include/ethernetdb.h b/include/ethernetdb.h
18 index 46d8bfd1b7e5..1683abe01987 100644
19 --- a/include/ethernetdb.h
20 +++ b/include/ethernetdb.h
21 @@ -38,21 +38,20 @@ struct ethertypeent {
23 /* Open ethertype data base files and mark them as staying open even
24 after a later search if STAY_OPEN is non-zero. */
25 -extern void setethertypeent(int __stay_open) __THROW;
26 +extern void setethertypeent(int __stay_open);
28 /* Close ethertype data base files and clear `stay open' flag. */
29 -extern void endethertypeent(void) __THROW;
30 +extern void endethertypeent(void);
32 /* Get next entry from ethertype data base file. Open data base if
34 -extern struct ethertypeent *getethertypeent(void) __THROW;
35 +extern struct ethertypeent *getethertypeent(void);
37 /* Return entry from ethertype data base for network with NAME. */
38 -extern struct ethertypeent *getethertypebyname(__const char *__name)
40 +extern struct ethertypeent *getethertypebyname(__const char *__name);
42 /* Return entry from ethertype data base which number is PROTO. */
43 -extern struct ethertypeent *getethertypebynumber(int __ethertype) __THROW;
44 +extern struct ethertypeent *getethertypebynumber(int __ethertype);
47 #endif /* ethernetdb.h */