packages/net/addrwatch/patches/002-fix-uclibc-sysconf.patch
Rosen Penev f1a7d509b5
addrwatch: update to 1.0.2
Switch to standard tarball to avoid autoreconfig.

Fix license information.

Add PKG_BUILD_PARALLEL for faster compilation.

Add PKG_INSTALL for consistency with other packages.

Removed upstreamed patches. Refresh remaining one.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-02-26 21:02:20 -08:00

11 lines
375 B
Diff

--- a/src/addrwatch.c
+++ b/src/addrwatch.c
@@ -501,7 +501,7 @@ int main(int argc, char *argv[])
argp_parse(&argp, argc, argv, 0, &optind, 0);
if (!cfg.hostname) {
- cfg.hostname_len = sysconf(_SC_HOST_NAME_MAX);
+ cfg.hostname_len = HOST_NAME_MAX;
cfg.hostname = (char *)calloc(cfg.hostname_len, sizeof(char));
gethostname(cfg.hostname, cfg.hostname_len);
}