git: 744991d495b2 - main - cross-build: progname.c is used only on linux, so no ifdefs needed

From: Warner Losh <imp_at_FreeBSD.org>
Date: Thu, 25 Jul 2024 02:47:02 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=744991d495b28ea157a94e139224140687ec19ed

commit 744991d495b28ea157a94e139224140687ec19ed
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-07-25 02:46:43 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
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 <sys/cdefs.h>
 #include <stdlib.h>
 
-#ifdef __linux__
 extern const char *__progname;
 const char *
 getprogname(void)
@@ -48,4 +47,3 @@ setprogname(const char *progname)
 {
 	__progname = progname;
 }
-#endif /* __linux__ */