diff options
author | Ron Yorston <rmy@pobox.com> | 2023-08-24 15:02:14 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-08-24 15:02:14 +0100 |
commit | 8d70faa33f782504838d0da8892f978d17adcdec (patch) | |
tree | 44044f174f3a215ad045e4ee6222d857e262e0f6 | |
parent | f4f0515429d8ace3c3314ee0e823205d8044f2ac (diff) | |
download | busybox-w32-8d70faa33f782504838d0da8892f978d17adcdec.tar.gz busybox-w32-8d70faa33f782504838d0da8892f978d17adcdec.tar.bz2 busybox-w32-8d70faa33f782504838d0da8892f978d17adcdec.zip |
make: fix POSIX build
If upstream BusyBox had a 'make' applet a native build with it
enabled should match the corresponding build from the busybox-w32
source.
Make it so.
-rw-r--r-- | miscutils/make.c | 15 | ||||
-rw-r--r-- | win32/Kbuild | 3 |
2 files changed, 16 insertions, 2 deletions
diff --git a/miscutils/make.c b/miscutils/make.c index 7e156e302..a2cd03707 100644 --- a/miscutils/make.c +++ b/miscutils/make.c | |||
@@ -336,6 +336,21 @@ auto_concat(const char *s1, const char *s2) | |||
336 | return auto_string(xasprintf("%s%s", s1, s2)); | 336 | return auto_string(xasprintf("%s%s", s1, s2)); |
337 | } | 337 | } |
338 | 338 | ||
339 | #if !ENABLE_PLATFORM_MINGW32 | ||
340 | /* | ||
341 | * Append a word to a space-separated string of words. The first | ||
342 | * call should use a NULL pointer for str, subsequent calls should | ||
343 | * pass an allocated string which will be freed. | ||
344 | */ | ||
345 | static char * | ||
346 | xappendword(const char *str, const char *word) | ||
347 | { | ||
348 | char *newstr = str ? xasprintf("%s %s", str, word) : xstrdup(word); | ||
349 | free((void *)str); | ||
350 | return newstr; | ||
351 | } | ||
352 | #endif | ||
353 | |||
339 | static unsigned int | 354 | static unsigned int |
340 | getbucket(const char *name) | 355 | getbucket(const char *name) |
341 | { | 356 | { |
diff --git a/win32/Kbuild b/win32/Kbuild index ecd27645c..3e1f845df 100644 --- a/win32/Kbuild +++ b/win32/Kbuild | |||
@@ -8,8 +8,7 @@ lib-$(CONFIG_PLATFORM_MINGW32) += dirent.o | |||
8 | lib-$(CONFIG_PLATFORM_MINGW32) += env.o | 8 | lib-$(CONFIG_PLATFORM_MINGW32) += env.o |
9 | lib-$(CONFIG_PLATFORM_MINGW32) += fnmatch.o | 9 | lib-$(CONFIG_PLATFORM_MINGW32) += fnmatch.o |
10 | lib-$(CONFIG_PLATFORM_MINGW32) += fsync.o | 10 | lib-$(CONFIG_PLATFORM_MINGW32) += fsync.o |
11 | lib-$(CONFIG_MAKE) += glob.o | 11 | lib-$(CONFIG_PLATFORM_MINGW32) += glob.o |
12 | lib-$(CONFIG_PDPMAKE) += glob.o | ||
13 | lib-$(CONFIG_PLATFORM_MINGW32) += inet_pton.o | 12 | lib-$(CONFIG_PLATFORM_MINGW32) += inet_pton.o |
14 | lib-$(CONFIG_PLATFORM_MINGW32) += ioctl.o | 13 | lib-$(CONFIG_PLATFORM_MINGW32) += ioctl.o |
15 | lib-$(CONFIG_FEATURE_PRNG_ISAAC) += isaac.o | 14 | lib-$(CONFIG_FEATURE_PRNG_ISAAC) += isaac.o |