0001-ethernetdb.h-Remove-C-specific-compiler-hint-macro-_.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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
  5. Fixes compilation with musl libc
  6. Signed-off-by: Felix Janda <felix.janda@posteo.de>
  7. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  8. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  9. ---
  10. Patch status: upstream commit f8079671326e9fd0
  11. include/ethernetdb.h | 11 +++++------
  12. 1 file changed, 5 insertions(+), 6 deletions(-)
  13. diff --git a/include/ethernetdb.h b/include/ethernetdb.h
  14. index 46d8bfd1b7e5..1683abe01987 100644
  15. --- a/include/ethernetdb.h
  16. +++ b/include/ethernetdb.h
  17. @@ -38,21 +38,20 @@ struct ethertypeent {
  18. /* Open ethertype data base files and mark them as staying open even
  19. after a later search if STAY_OPEN is non-zero. */
  20. -extern void setethertypeent(int __stay_open) __THROW;
  21. +extern void setethertypeent(int __stay_open);
  22. /* Close ethertype data base files and clear `stay open' flag. */
  23. -extern void endethertypeent(void) __THROW;
  24. +extern void endethertypeent(void);
  25. /* Get next entry from ethertype data base file. Open data base if
  26. necessary. */
  27. -extern struct ethertypeent *getethertypeent(void) __THROW;
  28. +extern struct ethertypeent *getethertypeent(void);
  29. /* Return entry from ethertype data base for network with NAME. */
  30. -extern struct ethertypeent *getethertypebyname(__const char *__name)
  31. - __THROW;
  32. +extern struct ethertypeent *getethertypebyname(__const char *__name);
  33. /* Return entry from ethertype data base which number is PROTO. */
  34. -extern struct ethertypeent *getethertypebynumber(int __ethertype) __THROW;
  35. +extern struct ethertypeent *getethertypebynumber(int __ethertype);
  36. #endif /* ethernetdb.h */
  37. --
  38. 2.11.0