ap51-flash: Define IPPORT_TFTP where it is used
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 12 Apr 2017 20:46:55 +0000 (13:46 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Thu, 13 Apr 2017 01:03:54 +0000 (18:03 -0700)
commit31f77baa3aa90b4e9d406a2ba90e8b9afd8f403b
tree610d529a7a8d783b47d04913728c40aa21db20fd
parent37f6cae8508bfa34d5329dab58dae1470896a0e9
ap51-flash: Define IPPORT_TFTP where it is used

Defining IPPORT_TFTP on the pre-processor command line leads to the
following error for glibc-based toolchains:

mipsel-linux-gnu-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc
-fno-caller-saves -mips16 -minterlink-mips16
-I/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/usr/include
-I/local/users/fainelli/openwrt/trunk/staging_dir/target-mipsel-linux-gnu_glibc/include
-I/opt/toolchains/stbgcc-4.8-1.5/usr/include
-I/opt/toolchains/stbgcc-4.8-1.5/include  -Wall -Werror -W -g3
-std=gnu99 -Os -fno-strict-aliasing -DLINUX
-DREVISION_VERSION=\"2016-10-16\" -DFLASH_FROM_FILE -DNO_LIBPCAP
-D_GNU_SOURCE -UIPPORT_TFTP -DIPPORT_TFTP=69 -MD -c flash.c -o flash.o
<command-line>:0:13: error: expected identifier before numeric constant

Instead, move this where this gets used, in proto.c

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
utils/ap51-flash/Makefile
utils/ap51-flash/patches/100-ipport_tftp_def.patch [new file with mode: 0644]