mirror of
https://git.openwrt.org/feed/routing.git
synced 2025-01-08 11:47:51 +08:00
3dd7f27558
Fixed compilation with newer libubox. libubox added a sys/stat.h include, which happens to break compilation. The reason being __unused is a variable in musl and an attribute here. Fixed by undefining right before including the headers. Clean up Makefile for consistency between packages. Refreshed patches. Signed-off-by: Rosen Penev <rosenp@gmail.com>
11 lines
160 B
Diff
11 lines
160 B
Diff
--- a/src/hnetd.h
|
|
+++ b/src/hnetd.h
|
|
@@ -39,6 +39,7 @@
|
|
|
|
#endif /* __APPLE__ */
|
|
|
|
+#undef __unused
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <time.h>
|