#10 Conflicting definions for swab in db_ut.c

1.4.x
closed-fixed
core (47)
5
2008-08-20
2008-08-13
No

Because of historical compatibilites issue, a problem arises when including stdlib.h in db_ut.c. The patch eliminates this include, and replaces it including unistd.h

Discussion

  • Bogdan-Andrei Iancu

    • labels: --> core
    • milestone: --> 1.4.x
    • assigned_to: nobody --> bogdan_iancu
    • status: open --> open-accepted
     
  • Bogdan-Andrei Iancu

    Logged In: YES
    user_id=1275325
    Originator: NO

    Hi Sergio,

    What problems are with stdlib.h on Solaris?
    Applying the patch, breaks the compiling on linux:

    db/db_ut.c: In function 'db_str2int':
    db/db_ut.c:52: warning: implicit declaration of function 'strtoul'
    db/db_ut.c: In function 'db_str2double':
    db/db_ut.c:74: warning: implicit declaration of function 'atof'

    as these functions are defined by stdlib.h

    Regards,
    Bogdan

     
  • Sergio Gutierrez

    Logged In: YES
    user_id=1960760
    Originator: YES

    File Added: db_ut.h.diff

     
  • Sergio Gutierrez

    Patch to eliminate swab error conflict in Solaris

     
  • Bogdan-Andrei Iancu

    Logged In: YES
    user_id=1275325
    Originator: NO

    Hi Sergio,

    Thanks for the patch and your work in fixing this issue.

    Regards,
    Bogdan

     
  • Bogdan-Andrei Iancu

    • status: open-accepted --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks