[OpenWrt-Devel] usbreset: Add missing header
diff mbox series

Message ID 20190707213017.19661-1-rosenp@gmail.com
State Accepted
Delegated to: Hauke Mehrtens
Headers show
Series
  • [OpenWrt-Devel] usbreset: Add missing header
Related show

Commit Message

Rosen Penev July 7, 2019, 9:30 p.m. UTC
Fixes undefined reference to strtoul

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 package/utils/usbreset/Makefile       | 2 +-
 package/utils/usbreset/src/usbreset.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/package/utils/usbreset/Makefile b/package/utils/usbreset/Makefile
index 5324e9d045..bf3160cb1a 100644
--- a/package/utils/usbreset/Makefile
+++ b/package/utils/usbreset/Makefile
@@ -8,7 +8,7 @@ 
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=usbreset
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 include $(INCLUDE_DIR)/package.mk
 
diff --git a/package/utils/usbreset/src/usbreset.c b/package/utils/usbreset/src/usbreset.c
index ead30b1d82..dc2df3cb3b 100644
--- a/package/utils/usbreset/src/usbreset.c
+++ b/package/utils/usbreset/src/usbreset.c
@@ -37,6 +37,7 @@  Alan Stern
 */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <stdbool.h>
 #include <unistd.h>
 #include <fcntl.h>