summaryrefslogtreecommitdiff
path: root/security/libgcrypt/patches/patch-ae
blob: 25e95eba37347229c00510c8236cb74471681d67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
$NetBSD: patch-ae,v 1.2 2005/03/10 15:38:33 tv Exp $

--- src/ath.h.orig	Thu Nov 25 14:29:26 2004
+++ src/ath.h
@@ -31,6 +31,12 @@
 
 #include <config.h>
 
+#ifdef HAVE_SYS_SELECT_H
+# include <sys/select.h>
+#else
+# include <sys/time.h>
+#endif
+
 
 /* Define _ATH_EXT_SYM_PREFIX if you want to give all external symbols
    a prefix.  */
@@ -83,6 +89,14 @@ struct ath_ops
   int (*connect) (int s, void *addr, socklen_t length);
   int (*sendmsg) (int s, const void *msg, int flags);
   int (*recvmsg) (int s, void *msg, int flags);
+#elif defined(__INTERIX)
+  ssize_t (*select) (int nfd, fd_set *rset, fd_set *wset, fd_set *eset,
+		     struct timeval *timeout);
+  ssize_t (*waitpid) (pid_t pid, int *status, int options);
+  int (*accept) (int s, struct sockaddr *addr, socklen_t *length_ptr);
+  int (*connect) (int s, struct sockaddr *addr, socklen_t length);
+  int (*sendmsg) (int s, const void *msg, int flags);
+  int (*recvmsg) (int s, void *msg, int flags);
 #else
   ssize_t (*select) (int nfd, fd_set *rset, fd_set *wset, fd_set *eset,
 		     struct timeval *timeout);
@@ -117,6 +131,14 @@ ssize_t ath_select (int nfd, void *rset,
 ssize_t ath_waitpid (pid_t pid, int *status, int options);
 int ath_accept (int s, void *addr, int *length_ptr);
 int ath_connect (int s, void *addr, int length);
+int ath_sendmsg (int s, const void *msg, int flags);
+int ath_recvmsg (int s, void *msg, int flags);
+#elif defined(__INTERIX)
+ssize_t ath_select (int nfd, fd_set *rset, fd_set *wset, fd_set *eset,
+		    struct timeval *timeout);
+ssize_t ath_waitpid (pid_t pid, int *status, int options);
+int ath_accept (int s, struct sockaddr *addr, socklen_t *length_ptr);
+int ath_connect (int s, struct sockaddr *addr, socklen_t length);
 int ath_sendmsg (int s, const void *msg, int flags);
 int ath_recvmsg (int s, void *msg, int flags);
 #else