getdomainname() fails in x86_64 applications

Discussion in 'Mac Programming' started by bdoyle, Nov 7, 2008.

  1. bdoyle macrumors newbie

    Joined:
    Nov 6, 2008
    #1
    getdomainname() is failing with errno=14 (bad address) when the test application is built 64bits. The same code works fine when compiled in 32bits. Anybody know how to solve or work around this problem? Where do I search for or file a bug against macosx?

    Thanks,
    Blade.

    Testcase:
     
  2. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2
    Did you try casting the second argument to size_t explicitly?

    -Lee
     
  3. bdoyle thread starter macrumors newbie

    Joined:
    Nov 6, 2008
    #3
    Thanks for the suggestion. I just tried it but no luck. ;( No help from Apple support either. :mad:
     

Share This Page