From 207ffc2d0afbf4f8c46368e63a4db407fe636ece Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 10 Mar 2004 07:05:19 +0000 Subject: * struct.c (rb_struct_s_def): Struct::new executes block with generated struct class. [ruby-talk:02606] * io.c (rb_io_ungetc): raise IOError instead of calling rb_sys_fail(). [ruby-talk:23181] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/socket.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'ext') diff --git a/ext/socket/socket.c b/ext/socket/socket.c index dfd65a267..e62837891 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -683,6 +683,23 @@ sock_addrinfo(host, port, socktype, flags) rb_raise(rb_eSocket, "getaddrinfo: %s", gai_strerror(error)); } +#if defined(__APPLE__) && defined(__MACH__) + { + struct addrinfo *r; + r = res; + while (r) { + if (! r->ai_socktype) r->ai_socktype = hints.ai_socktype; + if (! r->ai_protocol) { + if (r->ai_socktype == SOCK_DGRAM) { + r->ai_protocol = IPPROTO_UDP; + } else if (r->ai_socktype == SOCK_STREAM) { + r->ai_protocol = IPPROTO_TCP; + } + } + r = r->ai_next; + } + } +#endif return res; } -- cgit hishek-33'>abhishek-33 Unnamed repository; edit this file 'description' to name the repository.Endi Dewata
summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/profile/IProfileOutput.java
blob: dd3b47c54ca78cf2bc80e0fe46da5499a5833967 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121