[OpenWrt-Devel] [PATCH] usbreset: Add missing header
Rosen Penev
rosenp at gmail.com
Sun Jul 7 17:30:17 EDT 2019
Fixes undefined reference to strtoul
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
package/utils/usbreset/Makefile | 2 +-
package/utils/usbreset/src/usbreset.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
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>
--
2.17.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list