chore(main/libresolv-wrapper): fix declaration-after-statement error

This commit is contained in:
Henrik Grimler 2022-08-14 21:20:28 +02:00
parent a33171efe2
commit 578ccba756
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="A wrapper for DNS name resolving or DNS faking"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.1.7
TERMUX_PKG_REVISION=2
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=https://ftp.samba.org/pub/cwrap/resolv_wrapper-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=460ae7fd5e53485be7dd99a55c5922f1cb1636b9e8821981d49ad16507c8a074

View File

@ -90,6 +90,7 @@
+
+static u_int
+res_randomid(void) {
+ struct timeval now;
+#ifdef ANDROID_CHANGES
+ int status = 0;
+ u_int output = 0;
@ -98,7 +99,6 @@
+ return output;
+ }
+#endif /* ANDROID_CHANGES */
+ struct timeval now;
+ gettimeofday(&now, NULL);
+ return (0xffff & (now.tv_sec ^ now.tv_usec ^ getpid()));
+}