#633 Fails to compile on QNX 6

closed-accepted
5
2013-06-21
2007-03-27
Matt Kraai
No

cURL fails to build on QNX 6 because

* strequal.c fails to compile because strcasecmp is not declared. strcasecmp is declared in strings.h, but strequal.c doesn't include it.
* setmode is called but is not defined because main.c assumes that it's present if O_BINARY is defined.

The attached patch fixes these issues.

Discussion

  • Matt Kraai

    Matt Kraai - 2007-03-27

    Patch

     
  • Dan Fandrich

    Dan Fandrich - 2007-03-28

    Logged In: YES
    user_id=236775
    Originator: NO

    The patch looks good to me, but all the relevant platforms that don't use autoconf will need to be updated to add HAVE_SETMODE. This especially includes the DOS/Windows platforms, where curl will completely break without this update.

     
  • Daniel Stenberg

    Daniel Stenberg - 2007-04-01
    • labels: --> compile or build problem
    • milestone: --> portability_problem
    • assigned_to: nobody --> bagder
    • status: open --> closed-accepted
     
  • Daniel Stenberg

    Daniel Stenberg - 2007-04-01

    Logged In: YES
    user_id=1110
    Originator: NO

    Thanks, committed. With a fix to src/config-win32.h for this.