Ticket #65877: patch-src_ath.h-fd_set.diff

File patch-src_ath.h-fd_set.diff, 1.2 KB (added by ballapete (Peter "Pete" Dyballa), 20 months ago)

Patch to remove the use of fd_set in src/ath.h, at least needed on Tiger, Mac OS X 10.4

  • src/ath.h

    old new  
    6262#define _ATH_PREFIX(x) _ATH_PREFIX2(_ATH_EXT_SYM_PREFIX,x)
    6363#define ath_read _ATH_PREFIX(ath_read)
    6464#define ath_write _ATH_PREFIX(ath_write)
    65 #define ath_select _ATH_PREFIX(ath_select)
     65#if !defined(HAVE_POLL_H) /* Mac OS X Tiger needs it */
     66  #define ath_select _ATH_PREFIX(ath_select)
     67#endif  /*!HAVE_POLL_H */
    6668#define ath_waitpid _ATH_PREFIX(ath_waitpid)
    6769#define ath_connect _ATH_PREFIX(ath_connect)
    6870#define ath_accept _ATH_PREFIX(ath_accept)
     
    7779   other (user-level) threads to run.  */
    7880gpgme_ssize_t ath_read (int fd, void *buf, size_t nbytes);
    7981gpgme_ssize_t ath_write (int fd, const void *buf, size_t nbytes);
    80 gpgme_ssize_t ath_select (int nfd, fd_set *rset, fd_set *wset, fd_set *eset,
     82#if !defined(HAVE_POLL_H) /* Mac OS X Tiger needs it */
     83  gpgme_ssize_t ath_select (int nfd, fd_set *rset, fd_set *wset, fd_set *eset,
    8184                           struct timeval *timeout);
     85#endif  /*!HAVE_POLL_H */
    8286gpgme_ssize_t ath_waitpid (pid_t pid, int *status, int options);
    8387int ath_accept (int s, struct sockaddr *addr, socklen_t *length_ptr);
    8488int ath_connect (int s, const struct sockaddr *addr, socklen_t length);