aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-01-23 09:24:38 +0000
committerRon Yorston <rmy@pobox.com>2024-01-23 09:30:11 +0000
commit99de7009698d868c0d139133ed4fa445be8cae50 (patch)
tree4f6f18253f799b80ef26add546a40118eec8b193 /include
parentd7c65f24a9f6cf61a1fc629d5d2d48cc64d5bc41 (diff)
downloadbusybox-w32-99de7009698d868c0d139133ed4fa445be8cae50.tar.gz
busybox-w32-99de7009698d868c0d139133ed4fa445be8cae50.tar.bz2
busybox-w32-99de7009698d868c0d139133ed4fa445be8cae50.zip
Fix POSIX build in standalone shell mode
The conditional compilation to control standalone shell mode was incorrect when building for POSIX. This hadn't been noticed before as it had only been tested in the default configuration where standalone shell mode is disabled.
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 96496169d..2f882aa9d 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1332,9 +1332,10 @@ void run_applet_no_and_exit(int a, const char *name, char **argv) NORETURN FAST_
1332# if ENABLE_FEATURE_PREFER_APPLETS || ENABLE_FEATURE_SH_STANDALONE 1332# if ENABLE_FEATURE_PREFER_APPLETS || ENABLE_FEATURE_SH_STANDALONE
1333int is_applet_preferred(const char *name, const char *path) FAST_FUNC; 1333int is_applet_preferred(const char *name, const char *path) FAST_FUNC;
1334int find_applet_by_name_with_path(const char *name, const char *path) FAST_FUNC; 1334int find_applet_by_name_with_path(const char *name, const char *path) FAST_FUNC;
1335# else
1336# define is_applet_preferred(n, p) (1)
1337# endif 1335# endif
1336# else
1337# define is_applet_preferred(n, p) (1)
1338# define find_applet_by_name_with_path(n, p) find_applet_by_name(n)
1338# endif 1339# endif
1339#endif 1340#endif
1340void show_usage_if_dash_dash_help(int applet_no, char **argv) FAST_FUNC; 1341void show_usage_if_dash_dash_help(int applet_no, char **argv) FAST_FUNC;