aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2024-02-07 14:25:14 +0100
committerToni Uhlig <matzeton@googlemail.com>2024-02-07 14:25:14 +0100
commitea968180a23d48edc121215359277e418b476487 (patch)
tree0ab12d63b9c4e305a542c96acdce52faeecb42e3 /scripts
parent556025b34d53c33d389de33a5c8c162e201d2267 (diff)
Read Ipv6 address and netmask using `getifaddrs()` instead of reading `/proc/net/if_inet6`.
* fixes a compatibility issue with Mac OSX Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get-and-build-libndpi.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/get-and-build-libndpi.sh b/scripts/get-and-build-libndpi.sh
index 27d2e2455..3b19922eb 100755
--- a/scripts/get-and-build-libndpi.sh
+++ b/scripts/get-and-build-libndpi.sh
@@ -31,11 +31,7 @@ if [ ! -z "${CC}" ]; then
HOST_TRIPLET="$(${CC} ${CFLAGS} -dumpmachine)"
fi
-if [ ! -z "${MAKEFLAGS}" ]; then
- case "$(uname -s)" in
- Linux*) MAKEFLAGS="-${MAKEFLAGS}" ;;
- esac
-fi
+MAKEFLAGS="-${MAKEFLAGS}"
cat <<EOF
------ environment variables ------