summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-01-08 14:01:18 +0000
committerRon Yorston <rmy@pobox.com>2020-01-08 14:01:18 +0000
commitcf0fa4d1392b7dc7eb8d37206c111f76af67e0e9 (patch)
treeb3b8b2d8b9b501b2a8847bae76e97a5f30a4f464
parenta9271a8e97e6e7be5285330d5f19352decabf807 (diff)
downloadbusybox-w32-FRP-3329-gcf0fa4d13.tar.gz
busybox-w32-FRP-3329-gcf0fa4d13.tar.bz2
busybox-w32-FRP-3329-gcf0fa4d13.zip
- Update configuration files - Omit unnecessary libraries - Replace fake stime(2) with fake clock_settime(2)
-rw-r--r--Makefile.flags2
-rw-r--r--configs/mingw32_defconfig9
-rw-r--r--configs/mingw64_defconfig9
-rw-r--r--include/mingw.h2
-rw-r--r--win32/mingw.c2
5 files changed, 18 insertions, 6 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 66f28874e..ec46c4f4f 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -148,6 +148,7 @@ EXEEXT = .exe
148LDLIBS += userenv psapi ws2_32 148LDLIBS += userenv psapi ws2_32
149endif 149endif
150 150
151ifneq ($(CONFIG_PLATFORM_MINGW32),y)
151# Android has no separate crypt library 152# Android has no separate crypt library
152# gcc-4.2.1 fails if we try to feed C source on stdin: 153# gcc-4.2.1 fails if we try to feed C source on stdin:
153# echo 'int main(void){return 0;}' | $(CC) $(CFLAGS) -lcrypt -o /dev/null -xc - 154# echo 'int main(void){return 0;}' | $(CC) $(CFLAGS) -lcrypt -o /dev/null -xc -
@@ -160,6 +161,7 @@ LDLIBS += m rt
160endif 161endif
161# libm may be needed for dc, awk, ntpd 162# libm may be needed for dc, awk, ntpd
162# librt may be needed for clock_gettime() 163# librt may be needed for clock_gettime()
164endif
163 165
164# libpam may use libpthread, libdl and/or libaudit. 166# libpam may use libpthread, libdl and/or libaudit.
165# On some platforms that requires an explicit -lpthread, -ldl, -laudit. 167# On some platforms that requires an explicit -lpthread, -ldl, -laudit.
diff --git a/configs/mingw32_defconfig b/configs/mingw32_defconfig
index ccc708172..b8a8b7e60 100644
--- a/configs/mingw32_defconfig
+++ b/configs/mingw32_defconfig
@@ -1,7 +1,7 @@
1# 1#
2# Automatically generated make config: don't edit 2# Automatically generated make config: don't edit
3# Busybox version: 1.31.0.git 3# Busybox version: 1.32.0.git
4# Mon May 27 11:58:04 2019 4# Wed Jan 8 12:31:30 2020
5# 5#
6CONFIG_HAVE_DOT_CONFIG=y 6CONFIG_HAVE_DOT_CONFIG=y
7# CONFIG_PLATFORM_POSIX is not set 7# CONFIG_PLATFORM_POSIX is not set
@@ -94,6 +94,7 @@ CONFIG_DEBUG=y
94# CONFIG_DEBUG_SANITIZE is not set 94# CONFIG_DEBUG_SANITIZE is not set
95# CONFIG_UNIT_TEST is not set 95# CONFIG_UNIT_TEST is not set
96# CONFIG_WERROR is not set 96# CONFIG_WERROR is not set
97# CONFIG_WARN_SIMPLE_MSG is not set
97CONFIG_NO_DEBUG_LIB=y 98CONFIG_NO_DEBUG_LIB=y
98# CONFIG_DMALLOC is not set 99# CONFIG_DMALLOC is not set
99# CONFIG_EFENCE is not set 100# CONFIG_EFENCE is not set
@@ -476,6 +477,7 @@ CONFIG_FEATURE_FIND_SIZE=y
476CONFIG_FEATURE_FIND_PRUNE=y 477CONFIG_FEATURE_FIND_PRUNE=y
477CONFIG_FEATURE_FIND_QUIT=y 478CONFIG_FEATURE_FIND_QUIT=y
478CONFIG_FEATURE_FIND_DELETE=y 479CONFIG_FEATURE_FIND_DELETE=y
480CONFIG_FEATURE_FIND_EMPTY=y
479CONFIG_FEATURE_FIND_PATH=y 481CONFIG_FEATURE_FIND_PATH=y
480CONFIG_FEATURE_FIND_REGEX=y 482CONFIG_FEATURE_FIND_REGEX=y
481# CONFIG_FEATURE_FIND_CONTEXT is not set 483# CONFIG_FEATURE_FIND_CONTEXT is not set
@@ -655,6 +657,7 @@ CONFIG_XXD=y
655# CONFIG_FEATURE_MDEV_RENAME_REGEXP is not set 657# CONFIG_FEATURE_MDEV_RENAME_REGEXP is not set
656# CONFIG_FEATURE_MDEV_EXEC is not set 658# CONFIG_FEATURE_MDEV_EXEC is not set
657# CONFIG_FEATURE_MDEV_LOAD_FIRMWARE is not set 659# CONFIG_FEATURE_MDEV_LOAD_FIRMWARE is not set
660# CONFIG_FEATURE_MDEV_DAEMON is not set
658# CONFIG_MESG is not set 661# CONFIG_MESG is not set
659# CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP is not set 662# CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP is not set
660# CONFIG_MKE2FS is not set 663# CONFIG_MKE2FS is not set
@@ -706,6 +709,7 @@ CONFIG_REV=y
706# CONFIG_SWITCH_ROOT is not set 709# CONFIG_SWITCH_ROOT is not set
707# CONFIG_TASKSET is not set 710# CONFIG_TASKSET is not set
708# CONFIG_FEATURE_TASKSET_FANCY is not set 711# CONFIG_FEATURE_TASKSET_FANCY is not set
712# CONFIG_FEATURE_TASKSET_CPULIST is not set
709# CONFIG_UEVENT is not set 713# CONFIG_UEVENT is not set
710# CONFIG_UMOUNT is not set 714# CONFIG_UMOUNT is not set
711# CONFIG_FEATURE_UMOUNT_ALL is not set 715# CONFIG_FEATURE_UMOUNT_ALL is not set
@@ -957,6 +961,7 @@ CONFIG_SSL_CLIENT=y
957# CONFIG_FEATURE_TELNETD_INETD_WAIT is not set 961# CONFIG_FEATURE_TELNETD_INETD_WAIT is not set
958# CONFIG_TFTP is not set 962# CONFIG_TFTP is not set
959# CONFIG_FEATURE_TFTP_PROGRESS_BAR is not set 963# CONFIG_FEATURE_TFTP_PROGRESS_BAR is not set
964# CONFIG_FEATURE_TFTP_HPA_COMPAT is not set
960# CONFIG_TFTPD is not set 965# CONFIG_TFTPD is not set
961# CONFIG_FEATURE_TFTP_GET is not set 966# CONFIG_FEATURE_TFTP_GET is not set
962# CONFIG_FEATURE_TFTP_PUT is not set 967# CONFIG_FEATURE_TFTP_PUT is not set
diff --git a/configs/mingw64_defconfig b/configs/mingw64_defconfig
index 9af0e6db4..aa8bcc518 100644
--- a/configs/mingw64_defconfig
+++ b/configs/mingw64_defconfig
@@ -1,7 +1,7 @@
1# 1#
2# Automatically generated make config: don't edit 2# Automatically generated make config: don't edit
3# Busybox version: 1.31.0.git 3# Busybox version: 1.32.0.git
4# Mon May 27 11:58:04 2019 4# Wed Jan 8 12:31:30 2020
5# 5#
6CONFIG_HAVE_DOT_CONFIG=y 6CONFIG_HAVE_DOT_CONFIG=y
7# CONFIG_PLATFORM_POSIX is not set 7# CONFIG_PLATFORM_POSIX is not set
@@ -94,6 +94,7 @@ CONFIG_DEBUG=y
94# CONFIG_DEBUG_SANITIZE is not set 94# CONFIG_DEBUG_SANITIZE is not set
95# CONFIG_UNIT_TEST is not set 95# CONFIG_UNIT_TEST is not set
96# CONFIG_WERROR is not set 96# CONFIG_WERROR is not set
97# CONFIG_WARN_SIMPLE_MSG is not set
97CONFIG_NO_DEBUG_LIB=y 98CONFIG_NO_DEBUG_LIB=y
98# CONFIG_DMALLOC is not set 99# CONFIG_DMALLOC is not set
99# CONFIG_EFENCE is not set 100# CONFIG_EFENCE is not set
@@ -476,6 +477,7 @@ CONFIG_FEATURE_FIND_SIZE=y
476CONFIG_FEATURE_FIND_PRUNE=y 477CONFIG_FEATURE_FIND_PRUNE=y
477CONFIG_FEATURE_FIND_QUIT=y 478CONFIG_FEATURE_FIND_QUIT=y
478CONFIG_FEATURE_FIND_DELETE=y 479CONFIG_FEATURE_FIND_DELETE=y
480CONFIG_FEATURE_FIND_EMPTY=y
479CONFIG_FEATURE_FIND_PATH=y 481CONFIG_FEATURE_FIND_PATH=y
480CONFIG_FEATURE_FIND_REGEX=y 482CONFIG_FEATURE_FIND_REGEX=y
481# CONFIG_FEATURE_FIND_CONTEXT is not set 483# CONFIG_FEATURE_FIND_CONTEXT is not set
@@ -655,6 +657,7 @@ CONFIG_XXD=y
655# CONFIG_FEATURE_MDEV_RENAME_REGEXP is not set 657# CONFIG_FEATURE_MDEV_RENAME_REGEXP is not set
656# CONFIG_FEATURE_MDEV_EXEC is not set 658# CONFIG_FEATURE_MDEV_EXEC is not set
657# CONFIG_FEATURE_MDEV_LOAD_FIRMWARE is not set 659# CONFIG_FEATURE_MDEV_LOAD_FIRMWARE is not set
660# CONFIG_FEATURE_MDEV_DAEMON is not set
658# CONFIG_MESG is not set 661# CONFIG_MESG is not set
659# CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP is not set 662# CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP is not set
660# CONFIG_MKE2FS is not set 663# CONFIG_MKE2FS is not set
@@ -706,6 +709,7 @@ CONFIG_REV=y
706# CONFIG_SWITCH_ROOT is not set 709# CONFIG_SWITCH_ROOT is not set
707# CONFIG_TASKSET is not set 710# CONFIG_TASKSET is not set
708# CONFIG_FEATURE_TASKSET_FANCY is not set 711# CONFIG_FEATURE_TASKSET_FANCY is not set
712# CONFIG_FEATURE_TASKSET_CPULIST is not set
709# CONFIG_UEVENT is not set 713# CONFIG_UEVENT is not set
710# CONFIG_UMOUNT is not set 714# CONFIG_UMOUNT is not set
711# CONFIG_FEATURE_UMOUNT_ALL is not set 715# CONFIG_FEATURE_UMOUNT_ALL is not set
@@ -957,6 +961,7 @@ CONFIG_SSL_CLIENT=y
957# CONFIG_FEATURE_TELNETD_INETD_WAIT is not set 961# CONFIG_FEATURE_TELNETD_INETD_WAIT is not set
958# CONFIG_TFTP is not set 962# CONFIG_TFTP is not set
959# CONFIG_FEATURE_TFTP_PROGRESS_BAR is not set 963# CONFIG_FEATURE_TFTP_PROGRESS_BAR is not set
964# CONFIG_FEATURE_TFTP_HPA_COMPAT is not set
960# CONFIG_TFTPD is not set 965# CONFIG_TFTPD is not set
961# CONFIG_FEATURE_TFTP_GET is not set 966# CONFIG_FEATURE_TFTP_GET is not set
962# CONFIG_FEATURE_TFTP_PUT is not set 967# CONFIG_FEATURE_TFTP_PUT is not set
diff --git a/include/mingw.h b/include/mingw.h
index 15ead7799..568b1d846 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -354,7 +354,7 @@ struct tm *gmtime_r(const time_t *timep, struct tm *result);
354struct tm *localtime_r(const time_t *timep, struct tm *result); 354struct tm *localtime_r(const time_t *timep, struct tm *result);
355char *strptime(const char *s, const char *format, struct tm *tm); 355char *strptime(const char *s, const char *format, struct tm *tm);
356size_t mingw_strftime(char *buf, size_t max, const char *format, const struct tm *tm); 356size_t mingw_strftime(char *buf, size_t max, const char *format, const struct tm *tm);
357int stime(time_t *t); 357int clock_settime(clockid_t clk_id, const struct timespec *tp);
358 358
359#define strftime mingw_strftime 359#define strftime mingw_strftime
360 360
diff --git a/win32/mingw.c b/win32/mingw.c
index 7e4d6a318..38fbf2d4b 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -1392,7 +1392,7 @@ size_t mingw_strftime(char *buf, size_t max, const char *format, const struct tm
1392 return ret; 1392 return ret;
1393} 1393}
1394 1394
1395int stime(time_t *t UNUSED_PARAM) 1395int clock_settime(clockid_t clk_id UNUSED_PARAM, const struct timespec *tp UNUSED_PARAM)
1396{ 1396{
1397 errno = EPERM; 1397 errno = EPERM;
1398 return -1; 1398 return -1;