avrdude: fix musl compatibility

- Build with -D_GNU_SOURCE to expose "loff_t" required for libelf.h
 - Include sys/types.h before usb.h to provide missing u_int*_t types

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
Jo-Philipp Wich
2015-06-16 19:25:02 +02:00
parent 4116e327af
commit d028771f28
2 changed files with 64 additions and 1 deletions
+4 -1
View File
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=avrdude
PKG_VERSION:=6.1
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/avrdude
@@ -40,6 +40,9 @@ CONFIGURE_ARGS+= \
--disable-doc \
--disable-parport \
TARGET_CFLAGS+= \
-D_GNU_SOURCE \
define Package/avrdude/conffiles
/etc/avrdude.conf
endef