From f2f782dd1cf2b4ccb6f28f6113e7fedb23f078d6 Mon Sep 17 00:00:00 2001 From: Dan McGregor Date: Thu, 17 Nov 2016 18:57:28 -0600 Subject: Bring in FreeBSD support Check for FreeBSD specific issues, it is mostly the same as Darwin. Signed-off-by: Dan McGregor diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh index 18ada66..95fb72b 100644 --- a/scripts/build/internals.sh +++ b/scripts/build/internals.sh @@ -17,6 +17,9 @@ do_finish() { *darwin*) strip_args="" ;; + *freebsd*) + strip_args="--strip-all" + ;; *) strip_args="--strip-all -v" ;; diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh index 9cfc433..cd4a456 100644 --- a/scripts/build/kernel/linux.sh +++ b/scripts/build/kernel/linux.sh @@ -103,24 +103,28 @@ do_kernel_headers() { esac CT_DoLog EXTRA "Installing kernel headers" - CT_DoExecLog ALL \ - make -C "${kernel_path}" \ - CROSS_COMPILE="${CT_TARGET}-" \ - O="${CT_BUILD_DIR}/build-kernel-headers" \ - ARCH=${kernel_arch} \ - INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \ - ${V_OPT} \ + CT_DoExecLog ALL \ + make -C "${kernel_path}" \ + BASH="$(which bash)" \ + HOSTCC="${CT_BUILD}-gcc" \ + CROSS_COMPILE="${CT_TARGET}-" \ + O="${CT_BUILD_DIR}/build-kernel-headers" \ + ARCH=${kernel_arch} \ + INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \ + ${V_OPT} \ headers_install if [ "${CT_KERNEL_LINUX_INSTALL_CHECK}" = "y" ]; then CT_DoLog EXTRA "Checking installed headers" - CT_DoExecLog ALL \ - make -C "${kernel_path}" \ - CROSS_COMPILE="${CT_TARGET}-" \ - O="${CT_BUILD_DIR}/build-kernel-headers" \ - ARCH=${kernel_arch} \ - INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \ - ${V_OPT} \ + CT_DoExecLog ALL \ + make -C "${kernel_path}" \ + BASH="$(which bash)" \ + HOSTCC="${CT_BUILD}-gcc" \ + CROSS_COMPILE="${CT_TARGET}-" \ + O="${CT_BUILD_DIR}/build-kernel-headers" \ + ARCH=${kernel_arch} \ + INSTALL_HDR_PATH="${CT_SYSROOT_DIR}/usr" \ + ${V_OPT} \ headers_check fi diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index c12a553..25687ce 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -346,13 +346,21 @@ do_libc_backend_once() { build_ldflags="${CT_LDFLAGS_FOR_BUILD}" case "$CT_BUILD" in - *mingw*|*cygwin*|*msys*|*darwin*) + *mingw*|*cygwin*|*msys*|*darwin*|*freebsd*) # When installing headers on Cygwin, Darwin, MSYS2 and MinGW-w64 sunrpc needs # gettext for building cross-rpcgen. build_cppflags="${build_cppflags} -I${CT_BUILDTOOLS_PREFIX_DIR}/include/" build_ldflags="${build_ldflags} -lintl -liconv" + case "$CT_BUILD" in + *cygwin*|*freebsd*) + # Additionally, stat in FreeBSD, Cygwin, and possibly others + # is always 64bit, so replace struct stat64 with stat. + build_cppflags="${build_cppflags} -Dstat64=stat" + ;; + esac ;; esac + extra_make_args+=( "BUILD_CFLAGS=${build_cflags}" ) extra_make_args+=( "BUILD_CPPFLAGS=${build_cppflags}" ) extra_make_args+=( "BUILD_LDFLAGS=${build_ldflags}" ) -- cgit v0.10.2-6-g49f6 From 6d1bcaa2f53dd540bbb85b5b98ee1422005cdc9e Mon Sep 17 00:00:00 2001 From: Dan McGregor Date: Wed, 1 Mar 2017 22:22:13 -0600 Subject: Use configure to find the processor count configure.ac now finds how to count the CPUs in a system. Currently the getconf method and sysctl methods are supported. Adding more is easy enough. Signed-off-by: Dan McGregor diff --git a/Makefile.in b/Makefile.in index f0034cb..aa27d61 100644 --- a/Makefile.in +++ b/Makefile.in @@ -81,6 +81,7 @@ export LIBS := @LIBS@ export INTL_LIBS := @INTL_LIBS@ export curses_hdr := @ac_ct_curses_hdr@ export gettext := @gettext@ +export CPU_COUNT := @CPU_COUNT@ # config options to push down to kconfig KCONFIG:= @kconfig_options@ @@ -192,6 +193,7 @@ define sed_it -e 's,@@CT_awk@@,$(awk),g;' \ -e 's,@@CT_wget@@,$(wget),g;' \ -e 's,@@CT_curl@@,$(curl),g;' \ + -e 's,@@CT_cpucount@@,$(CPU_COUNT),g;' \ $< >$@ endef diff --git a/configure.ac b/configure.ac index 3c94392..d80a5cd 100644 --- a/configure.ac +++ b/configure.ac @@ -248,6 +248,15 @@ ACX_SET_KCONFIG_OPTION([stat_flavor_BSD]) test "$acx_cv_stat_flavor" = "GNU" && stat_flavor_GNU=y ACX_SET_KCONFIG_OPTION([stat_flavor_GNU]) +#Find out how to count CPUs +AC_CACHE_CHECK([whether to use getconf or sysctl to count CPUs], + [acx_cv_cpu_count], + [getconf _NPROCESSORS_ONLN >/dev/null 2>&1 && \ + acx_cv_cpu_count="getconf _NPROCESSORS_ONLN" + sysctl -n hw.ncpu >/dev/null 2>&1 && \ + acx_cv_cpu_count="sysctl -n hw.ncpu"]) +AC_SUBST(CPU_COUNT, "$acx_cv_cpu_count") + #-------------------------------------------------------------------- # Still boring, but remember the path, now... #-------------------------------------------------------------------- diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index 902c15d..2635e5f 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -534,7 +534,7 @@ if [ -z "${CT_RESTART}" ]; then fi # Use the number of processors+1 when automatically setting the number of # parallel jobs. Fall back to 1 if the host doesn't use GLIBC. - AUTO_JOBS=$((`getconf _NPROCESSORS_ONLN 2> /dev/null || echo 0` + 1)) + AUTO_JOBS=$((`@@CT_cpucount@@ 2>/dev/null || echo 0` + 1)) [ ${CT_PARALLEL_JOBS} -eq 0 ] && JOBSFLAGS="${JOBSFLAGS} -j${AUTO_JOBS}" [ ${CT_PARALLEL_JOBS} -gt 0 ] && JOBSFLAGS="${JOBSFLAGS} -j${CT_PARALLEL_JOBS}" JOBSFLAGS="${JOBSFLAGS} -l${CT_LOAD}" -- cgit v0.10.2-6-g49f6 From a0ab14c4a73f4bfd9cf2dd844dc28b838788801a Mon Sep 17 00:00:00 2001 From: Dan McGregor Date: Tue, 21 Feb 2017 19:25:47 -0600 Subject: Use BUILD_PREFIX and BUILD_SUFFIX for gcc version It's possible that "gcc" is not the compiler being used for the build, so respect BUILD_PREFIX and BUILD_SUFFIX when finding its version. Signed-off-by: Dan McGregor diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index 2635e5f..81686a5 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -227,7 +227,7 @@ CT_SYS_REVISION=$(uname -r) CT_SYS_OS=$(uname -s) CT_SYS_MACHINE=$(uname -m) CT_SYS_PROCESSOR=$(uname -p) -CT_SYS_GCC=$(gcc -dumpversion) +CT_SYS_GCC=$(${CT_BUILD_PREFIX}gcc${CT_BUILD_SUFFIX} -dumpversion) CT_SYS_TARGET=$(CT_DoConfigGuess) CT_TOOLCHAIN_ID="crosstool-${CT_VERSION} build ${CT_STAR_DATE_HUMAN} by ${CT_SYS_USER}@${CT_SYS_HOSTNAME}" -- cgit v0.10.2-6-g49f6 From c88621f74005dcbbc9787c1cae33c5751ec5ef81 Mon Sep 17 00:00:00 2001 From: Dan McGregor Date: Wed, 1 Mar 2017 04:10:37 -0600 Subject: glibc: hide native c++ executable from build If glibc's configure finds the host c++ executable it assumes that c++ should be enabled for the build. In case we don't have cross g++ built yet (ie, for headers), this causes the build to fail creating C++ headers. So hide C++ from the build. Signed-off-by: Dan McGregor diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index 25687ce..5207457 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -247,6 +247,10 @@ do_libc_backend_once() { [ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}") touch config.cache + + # Hide host C++ binary from configure + echo "ac_cv_prog_ac_ct_CXX=${CT_TARGET}-g++" >>config.cache + if [ "${CT_LIBC_GLIBC_FORCE_UNWIND}" = "y" ]; then echo "libc_cv_forced_unwind=yes" >>config.cache echo "libc_cv_c_cleanup=yes" >>config.cache -- cgit v0.10.2-6-g49f6 From 7f961026c193bda19b91acee756ae206412c7bc5 Mon Sep 17 00:00:00 2001 From: Dan McGregor Date: Tue, 21 Feb 2017 19:25:26 -0600 Subject: Explicitly use gcc for GMP GMP's configure script tries to be too smart, and if it determines that it's not cross-compiling it chooses gcc or cc instead of the wrapper we create at the start of the build. Signed-off-by: Dan McGregor diff --git a/scripts/build/companion_libs/100-gmp.sh b/scripts/build/companion_libs/100-gmp.sh index c81874a..e6a4875 100644 --- a/scripts/build/companion_libs/100-gmp.sh +++ b/scripts/build/companion_libs/100-gmp.sh @@ -88,7 +88,10 @@ do_gmp_backend() { extra_config+=("--enable-mpbsd") fi + # FIXME: GMP's configure script doesn't respect the host parameter + # when not cross-compiling, ie when build == host. CT_DoExecLog CFG \ + CC="${host}-gcc" \ CFLAGS="${cflags} -fexceptions" \ LDFLAGS="${ldflags}" \ ${CONFIG_SHELL} \ -- cgit v0.10.2-6-g49f6 From a511f73276351e41c59def3573f76b37a289d292 Mon Sep 17 00:00:00 2001 From: Dan McGregor Date: Wed, 1 Mar 2017 15:04:06 -0600 Subject: Drop the stat64 Cygwin patch It's not needed now that it's been moved to glibc.sh Signed-off-by: Dan McGregor diff --git a/patches/glibc/2.12.1/110-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.12.1/110-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.12.1/110-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - diff --git a/patches/glibc/2.12.2/110-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.12.2/110-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.12.2/110-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - diff --git a/patches/glibc/2.13/110-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.13/110-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.13/110-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - diff --git a/patches/glibc/2.14.1/110-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.14.1/110-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.14.1/110-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - diff --git a/patches/glibc/2.14/110-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.14/110-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.14/110-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - diff --git a/patches/glibc/2.15/110-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.15/110-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.15/110-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - diff --git a/patches/glibc/2.16.0/110-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.16.0/110-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.16.0/110-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - diff --git a/patches/glibc/2.17/110-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.17/110-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.17/110-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - diff --git a/patches/glibc/2.18/110-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.18/110-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.18/110-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - diff --git a/patches/glibc/2.19/110-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.19/110-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.19/110-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - diff --git a/patches/glibc/2.20/110-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.20/110-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.20/110-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - diff --git a/patches/glibc/2.21/110-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.21/110-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.21/110-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - diff --git a/patches/glibc/2.22/110-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.22/110-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.22/110-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - diff --git a/patches/glibc/2.23/100-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.23/100-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.23/100-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - diff --git a/patches/glibc/2.24/100-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.24/100-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.24/100-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - diff --git a/patches/glibc/2.25/100-Cygwin-doesnt-have-stat64.patch b/patches/glibc/2.25/100-Cygwin-doesnt-have-stat64.patch deleted file mode 100644 index 9097628..0000000 --- a/patches/glibc/2.25/100-Cygwin-doesnt-have-stat64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- glibc-2.22/sunrpc/rpc_main.c.orig 2015-08-05 07:42:21.000000000 +0100 -+++ glibc-2.22/sunrpc/rpc_main.c 2015-10-21 23:37:31.071268800 +0100 -@@ -51,6 +51,10 @@ - #include "rpc_scan.h" - #include "proto.h" - -+#if defined(__CYGWIN__) -+#define stat64 stat -+#endif -+ - #include "../version.h" - #define PACKAGE _libc_intl_domainname - -- cgit v0.10.2-6-g49f6