X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=PBLBZCOjRaGPyxAJXMxs4MiXibEEh9SBnIq3v5VRqd0=; b=toOQA4O+YFJUtONAyZPAxEktFH3cjwFwdUsGMM2TZsoxuJ7V/6mcssz5ONgNf/JAsL qfN2Fmn5hs9Tw3wnuxPskdpIxV3Qas9Z5qcE1itFINW1//cBHfqjj+I1jBIenPCgnL5q 5mRg+Q/WPLgGnwA7AykxC6GIhIsMiydXbnjTm9NKXyEAkOYWQjthmSi7dVv8gf0DMKVQ TFByLk212/gSLjwxmZf9hUEPlRlvWN/QK6YGqiVa9o22qE0dNvQbXQ+Ak6lWp2IkMTTz dtZhWDC9B34VWO8sLZOs/Ui3BnvbSuKiviBupC6SNGgo4u62UkQ/RMYX2O0kv7XQhE1y Rqxg== MIME-Version: 1.0 X-Received: by 10.50.164.138 with SMTP id yq10mr32004887igb.29.1432673009551; Tue, 26 May 2015 13:43:29 -0700 (PDT) Date: Tue, 26 May 2015 23:43:29 +0300 Message-ID: Subject: limits.h problem in cross-toolchain From: "Ozkan Sezer (sezeroz AT gmail DOT com)" To: djgpp Content-Type: text/plain; charset=UTF-8 Reply-To: djgpp AT delorie DOT com In my linux hosted cross-djgpp toolchains, gcc-provided limits.h doesn't include_next the djgpp-provided limits.h, I have to manually correct it. cross-gcc is configured like: ../gcc-3.46/configure --prefix=/usr/local/cross-djgpp --target=i586-pc-msdosdjgpp --with-headers=/usr/local/cross-djgpp/i586-pc-msdosdjgpp/include --enable-languages=c,c++ --disable-libgcj --disable-libada --disable-nls Same thing happens with gcc 3.3.6 and gcc 5.1.0 too. Before configuring and building gcc, djgpp libs and headers are of course copied under /usr/local/cross-djgpp/i586-pc-msdosdjgpp/ $ cat t.c #include #ifndef PATH_MAX #error bad limits.h #endif If I don't correct the installed gcc limits.h myself, the above test surely errors, which is annoying. What am I missing?