From nobody Thu Jul 25 02:47:02 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WTwJk62Z1z5RX6R; Thu, 25 Jul 2024 02:47:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WTwJk4xNHz4FcT; Thu, 25 Jul 2024 02:47:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721875622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gRbpCKz6Jllz4TCU8T+zgJSOGXlDVIxU4H5MiBPhbVk=; b=Ie76GhtdC8sWGAAFMEzaWbTupzA52+eLh2fukcf8Z1gFgkediMrQ60LdRawowG/ST9DsVa qHxYs4WeUBLRtGXTIlZH3yyUoBCCfyftNQnQU4+BS4WFHEfCrKJ2wjuCbeQtEY2Kp9S/tZ gQhNyrXkG9ChTQjen+4IRUwz8m5oM35wQFPY/3H6EHTEqmgFBnAsEGoq0oLSPVQvVZdj/6 sb5wKHujj7U1otj6ys/5J2uSGbJVVQrIyAlpxzqbudmPjb6nGhOUk8WbfrY9g0Dl9w3gMI 1N/AIt+rqusfBuWec0gU8xeOS/ttrxFLr6uD9zzMwW73NiMAJkvC5APaKdvhog== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721875622; a=rsa-sha256; cv=none; b=l8l2N9pnhHMIYH1GZh0fjjVvtCAGefTn86B9+fWEjNzzaXgAOriFwgUzVggvOXBTuNPEmF UOqL9zHH7c9LXb8Elt4DNYQfsccdYxDSEoE5ZBOYG7csZCZZuRY1t9MtWklu7a4VBppDcj qvrYCn7ZPCRI6xUHim+bS/laePbsFMN6mQmNdDz/qPdRgsqNYVQsRfIaEAKKOHmKnYkbVb 9bQRI+gyTWyxa93tYxwnzzPo5CtjOK2+uoaVc0C9a3VpiIvYAxwSxWi7Etbzt+jlJIDjdK nwUzIhld1L9ezawoKEvmQwx1Q9JvBPAuvBAI0xqmoFBXJnwn9ej5PzqoeaFT2Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721875622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gRbpCKz6Jllz4TCU8T+zgJSOGXlDVIxU4H5MiBPhbVk=; b=fnjuxs81mNDIvdCwwFwSP1kXY4vaTg+FSh7kxBqvr7FHFYfxcRCiX/XFbmPxGETTHR9gvm VA5peECVV278lUq8BdXF+fhnrIGCmi4VFd4gz56Wz62vTI2OuwWQ+I5FK09F8StzzN3z+7 +4EgfC3+5e1mI2//YFguSZqK9xIlUZaApZ3/VY+/gB93d7tKJT/Ksw9ksT6g0hHRj1M4/v 4+6vzMyjdOK2v/Q31nddZF/AtLGG+QbRTR8+K1HlvXZRYUh4aBIm/inEj4EwN8vGoWD7Fa JxGL2Yq2k6YD6+ArtuCbrs9QTj091TFswQjRJcHz+G/yAnoHWNPdSXL+9IKfdQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WTwJk4Xp3zd4H; Thu, 25 Jul 2024 02:47:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46P2l2gw025092; Thu, 25 Jul 2024 02:47:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46P2l2Aw025089; Thu, 25 Jul 2024 02:47:02 GMT (envelope-from git) Date: Thu, 25 Jul 2024 02:47:02 GMT Message-Id: <202407250247.46P2l2Aw025089@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 744991d495b2 - main - cross-build: progname.c is used only on linux, so no ifdefs needed List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 744991d495b28ea157a94e139224140687ec19ed Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=744991d495b28ea157a94e139224140687ec19ed commit 744991d495b28ea157a94e139224140687ec19ed Author: Warner Losh AuthorDate: 2024-07-25 02:46:43 +0000 Commit: Warner Losh CommitDate: 2024-07-25 02:47:26 +0000 cross-build: progname.c is used only on linux, so no ifdefs needed The logic in the makefile ensures this is only present on Linux, so no ifdef is needed. I overlooked comments to the effect in the original pull request somehow. Fixes: 0e03402139da Suggested by: arichards, jrtc27 Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D45374 --- tools/build/cross-build/progname.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/build/cross-build/progname.c b/tools/build/cross-build/progname.c index 6d396dadb67a..b7163f23fb2a 100644 --- a/tools/build/cross-build/progname.c +++ b/tools/build/cross-build/progname.c @@ -36,7 +36,6 @@ #include #include -#ifdef __linux__ extern const char *__progname; const char * getprogname(void) @@ -48,4 +47,3 @@ setprogname(const char *progname) { __progname = progname; } -#endif /* __linux__ */