Ticket #269: netbsd.2.diff

File netbsd.2.diff, 1.7 KB (added by volkersf, 11 years ago)
  • configure.ac

    ? autom4te253.cache
    ? netbsd.diff
    RCS file: /home/cvs/root/fptools/libraries/network/configure.ac,v
    retrieving revision 1.2
    diff -u -r1.2 configure.ac
     
    4343 [ AC_DEFINE([HAVE_BSD_SENDFILE], [1], [Define to 1 if you have a BSDish sendfile(2) implementation.]) AC_MSG_RESULT(yes) ], 
    4444 AC_MSG_RESULT(no)) 
    4545 
     46AC_CHECK_FUNCS(gethostent) 
     47 
    4648AC_OUTPUT 
  • Network/BSD.hsc

    RCS file: /home/cvs/root/fptools/libraries/network/Network/BSD.hsc,v
    retrieving revision 1.20
    diff -u -r1.20 BSD.hsc
     
    3333    getHostByAddr,          -- :: HostAddress -> Family -> IO HostEntry 
    3434    hostAddress,            -- :: HostEntry -> HostAddress 
    3535 
    36 #if !defined(cygwin32_TARGET_OS) && !defined(mingw32_TARGET_OS) && !defined(_WIN32) 
     36#if defined(HAVE_GETHOSTENT) && !defined(cygwin32_TARGET_OS) && !defined(mingw32_TARGET_OS) && !defined(_WIN32) 
    3737    setHostEntry,           -- :: Bool -> IO () 
    3838    getHostEntry,           -- :: IO HostEntry 
    3939    endHostEntry,           -- :: IO () 
     
    382382foreign import ccall safe "gethostbyaddr" 
    383383   c_gethostbyaddr :: Ptr HostAddress -> CInt -> CInt -> IO (Ptr HostEntry) 
    384384 
    385 #if !defined(cygwin32_TARGET_OS) && !defined(mingw32_TARGET_OS) && !defined(_WIN32) 
     385#if defined(HAVE_GETHOSTENT) && !defined(cygwin32_TARGET_OS) && !defined(mingw32_TARGET_OS) && !defined(_WIN32) 
    386386getHostEntry :: IO HostEntry 
    387387getHostEntry = do 
    388388 throwNoSuchThingIfNull         "getHostEntry" "unable to retrieve host entry"