include $(TOPDIR)/rules.mk
PKG_NAME:=bc
-PKG_VERSION:=1.08.1
+PKG_VERSION:=1.08.2
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/bc
-PKG_HASH:=515430115b3334c636317503460a0950dff79940aa3259ce2c1aa67c2881d023
+PKG_HASH:=ae470fec429775653e042015edc928d07c8c3b2fc59765172a330d3d87785f86
PKG_CPE_ID:=cpe:/a:gnu:bc
+++ /dev/null
---- a/h/getopt.h
-+++ b/h/getopt.h
-@@ -135,15 +135,7 @@ struct option
- arguments to the option '\0'. This behavior is specific to the GNU
- `getopt'. */
-
--#ifdef __GNU_LIBRARY__
--/* Many other libraries have conflicting prototypes for getopt, with
-- differences in the consts, in stdlib.h. To avoid compilation
-- errors, only prototype getopt for the GNU C library. */
- extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
--#else /* not __GNU_LIBRARY__ */
--extern int getopt ();
--#endif /* __GNU_LIBRARY__ */
--
- #ifndef __need_getopt
- extern int getopt_long (int ___argc, char *const *___argv,
- const char *__shortopts,
+++ /dev/null
---- a/lib/getopt.c
-+++ b/lib/getopt.c
-@@ -197,7 +197,7 @@ static char *posixly_correct;
- whose names are inconsistent. */
-
- #ifndef getenv
--extern char *getenv ();
-+extern char *getenv (const char *);
- #endif
-
- #endif /* not __GNU_LIBRARY__ */