diff options
| author | Warner Losh <imp@FreeBSD.org> | 2024-07-25 02:46:43 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2024-07-25 02:47:26 +0000 |
| commit | 744991d495b28ea157a94e139224140687ec19ed (patch) | |
| tree | 9a2fe07d2697de31a597ceb9be34df16b21dc131 /tools/build | |
| parent | 4a0b7955fd727754b853f6a346b8379e21bcb81f (diff) | |
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
Diffstat (limited to 'tools/build')
| -rw-r--r-- | tools/build/cross-build/progname.c | 2 |
1 files changed, 0 insertions, 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__ */ |
