mirror of
https://github.com/openwrt/routing.git
synced 2025-02-21 06:56:20 +00:00
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>
|