openwrt-6.x/target/linux/generic/hack-6.6
Georgi Valkov b77e6cd627 generic: fix PATH_MAX macro redefined in exec-cmd.c on macOS 15.4
Fix an error while building target/linux x64 on macOS 15.4 host,
due to the PATH_MAX macro being redefined:

mkdir -p /Volumes/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.86/tools/objtool && make O=/Volumes/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-6.6.86 subdir=tools/objtool --no-print-directory -C objtool
exec-cmd.c:15:9: error: 'PATH_MAX' macro redefined [-Werror,-Wmacro-redefined]
   15 | #define PATH_MAX        4096
      |         ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/syslimits.h:103:9: note: previous definition is here
  103 | #define PATH_MAX                 1024   /* max bytes in pathname */
      |         ^

exec-cmd.c is compiled as part of objtool to run on the host, and
therefore host headers are used, where PATH_MAX is already defined.
Using an old OpenWRT snapshot from 2025-02-16, where linux-6.6.77
used to build correctly, does not help. Reverting from Xcode 16.3 to
16.2 does not help either.

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18530
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-04-19 12:05:42 +02:00
..
200-tools_portability.patch generic: fix PATH_MAX macro redefined in exec-cmd.c on macOS 15.4 2025-04-19 12:05:42 +02:00
204-module_strip.patch kernel: bump 6.6 to 6.6.64 2024-12-13 21:40:02 +01:00
205-kconfig-abort-configuration-on-unset-symbol.patch
210-darwin_scripts_include.patch kernel: bump 6.6 to 6.6.26 2024-04-14 17:50:27 +02:00
211-darwin-uuid-typedef-clash.patch generic: 6.6: refresh hack patches 2024-03-11 20:17:26 +01:00
214-spidev_h_portability.patch
230-openwrt_lzma_options.patch kernel: bump 6.6 to 6.6.44 2024-08-06 00:40:42 +02:00
250-netfilter_depends.patch generic: 6.6: refresh hack patches 2024-03-11 20:17:26 +01:00
251-kconfig.patch generic: 6.6: refresh hack patches 2024-03-11 20:17:26 +01:00
253-ksmbd-config.patch kernel: bump 6.6 to 6.6.64 2024-12-13 21:40:02 +01:00
259-regmap_dynamic.patch kernel: bump 6.6 to 6.6.66 2024-12-19 00:38:34 +01:00
260-crypto_test_dependencies.patch
261-lib-arc4-unhide.patch generic: 6.6: refresh hack patches 2024-03-11 20:17:26 +01:00
280-rfkill-stubs.patch
300-MIPS-r4k_cache-use-more-efficient-cache-blast.patch
402-mtd-blktrans-call-add-disks-after-mtd-device.patch kernel: bump 6.6 to 6.6.33 and adjust subarches 2024-06-15 22:44:06 +02:00
420-mtd-support-OpenWrt-s-MTD_ROOTFS_ROOT_DEV.patch generic: 6.6: refresh hack patches 2024-03-11 20:17:26 +01:00
421-drivers-mtd-parsers-add-nvmem-support-to-cmdlinepart.patch
430-mtk-bmt-support.patch generic: move QCOM SPI NAND driver to generic backports 2025-04-10 15:01:09 +02:00
600-net-enable-fraglist-GRO-by-default.patch kernel: prevent tunnel drivers from mangling fraglist GSO packets 2024-08-16 10:07:01 +02:00
610-net-page_pool-try-to-free-deferred-skbs-while-waitin.patch generic: refresh hack patches 2025-01-22 20:12:58 +01:00
645-netfilter-connmark-introduce-set-dscpmark.patch kernel: bump 6.6 to 6.6.57 2024-10-19 16:21:32 +02:00
650-netfilter-add-xt_FLOWOFFLOAD-target.patch kernel: bump 6.6 to 6.6.66 2024-12-19 00:38:34 +01:00
651-wireless_mesh_header.patch generic: 6.6: refresh hack patches 2024-03-11 20:17:26 +01:00
660-fq_codel_defaults.patch
661-kernel-ct-size-the-hashtable-more-adequately.patch kernel: bump 6.6 to 6.6.72 2025-01-21 00:18:28 +01:00
700-swconfig_switch_drivers.patch generic: 6.6: refresh hack patches 2024-03-11 20:17:26 +01:00
711-net-dsa-mv88e6xxx-disable-ATU-violation.patch kernel: bump 6.6 to 6.6.84 2025-03-26 11:10:12 +01:00
721-net-add-packet-mangeling.patch kernel: bump 6.6 to 6.6.80 2025-03-02 11:39:59 +01:00
722-net-phy-aquantia-enable-AQR112-and-AQR412.patch generic: phy: aquantia: correctly describe LED polarity 2024-10-15 17:46:14 +01:00
723-net-phy-aquantia-fix-system-side-protocol-mi.patch generic: phy: aquantia: add pending patch to force MDI pair order 2024-09-20 22:47:05 +01:00
725-net-phy-aquantia-add-PHY_IDs-for-AQR112-variants.patch generic: phy: aquantia: correctly describe LED polarity 2024-10-15 17:46:14 +01:00
730-net-ethernet-mtk_eth_soc-add-hw-dump-for-forced-rese.patch kernel: Mediatek: fix EEE registers init 2025-03-31 10:21:28 +01:00
735-net-phy-realtek-rtl8261n.patch generic: import rtl8261n patches from mediatek 2025-03-16 19:05:56 +01:00
750-net-pcs-mtk-lynxi-workaround-2500BaseX-no-an.patch generic: 6.6: refresh hack patches 2024-03-11 20:17:26 +01:00
760-net-usb-r8152-add-LED-configuration-from-OF.patch kernel: bump 6.6 to 6.6.51 2024-09-15 16:32:48 +02:00
761-dt-bindings-net-add-RTL8152-binding-documentation.patch
766-net-phy-mediatek-ge-add-LED-configuration-interface.patch
773-bgmac-add-srab-switch.patch kernel: bump 6.6 to 6.6.76 2025-02-13 00:03:54 +01:00
780-usb-net-MeigLink_modem_support.patch kernel: bump 6.6 to 6.6.79 2025-02-23 12:17:38 +01:00
781-usb-net-rndis-support-asr.patch kernel: bump 6.6 to 6.6.87 2025-04-12 23:31:39 +02:00
800-GPIO-add-named-gpio-exports.patch treewide: remove THIS_MODULE assignment 2024-11-10 02:16:31 +01:00
810-bcma-ssb-fallback-sprom.patch kernel: fallback-sprom: create separate header files 2024-12-08 13:32:46 +01:00
901-debloat_sock_diag.patch kernel: bump 6.6 to 6.6.70 2025-01-10 13:41:30 +01:00
902-debloat_proc.patch kernel: bump 6.6 to 6.6.70 2025-01-10 13:41:30 +01:00
904-debloat_dma_buf.patch kernel: bump 6.6 to 6.6.84 2025-03-26 11:10:12 +01:00
910-kobject_uevent.patch
911-kobject_add_broadcast_uevent.patch generic: hack: fix patch description 2024-08-28 15:10:54 +01:00
920-device_tree_cmdline.patch kernel: bump 6.6 to 6.6.64 2024-12-13 21:40:02 +01:00
930-Revert-Revert-Revert-driver-core-Set-fw_devlink-on-b.patch kernel: bump 6.6 to 6.6.66 2024-12-19 00:38:34 +01:00