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), 2 years ago) |
---|
-
src/ath.h
old new 62 62 #define _ATH_PREFIX(x) _ATH_PREFIX2(_ATH_EXT_SYM_PREFIX,x) 63 63 #define ath_read _ATH_PREFIX(ath_read) 64 64 #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 */ 66 68 #define ath_waitpid _ATH_PREFIX(ath_waitpid) 67 69 #define ath_connect _ATH_PREFIX(ath_connect) 68 70 #define ath_accept _ATH_PREFIX(ath_accept) … … 77 79 other (user-level) threads to run. */ 78 80 gpgme_ssize_t ath_read (int fd, void *buf, size_t nbytes); 79 81 gpgme_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, 81 84 struct timeval *timeout); 85 #endif /*!HAVE_POLL_H */ 82 86 gpgme_ssize_t ath_waitpid (pid_t pid, int *status, int options); 83 87 int ath_accept (int s, struct sockaddr *addr, socklen_t *length_ptr); 84 88 int ath_connect (int s, const struct sockaddr *addr, socklen_t length);