File tree Expand file tree Collapse file tree 3 files changed +28
-1
lines changed Expand file tree Collapse file tree 3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,31 @@ get_int_const(const char* err) {
209
209
GET_CONST (ECANCELED );
210
210
#endif
211
211
212
+ #if defined(__OpenBSD__ )
213
+ GET_CONST (EAUTH );
214
+ GET_CONST (EBADRPC );
215
+ GET_CONST (ECANCELED );
216
+ GET_CONST (EDQUOT );
217
+ GET_CONST (EFTYPE );
218
+ GET_CONST (EILSEQ );
219
+ GET_CONST (EIPSEC );
220
+ GET_CONST (EMEDIUMTYPE );
221
+ GET_CONST (ENEEDAUTH );
222
+ GET_CONST (ENOATTR );
223
+ GET_CONST (ENOMEDIUM );
224
+ GET_CONST (ENOTSUP );
225
+ GET_CONST (EOPNOTSUPP );
226
+ GET_CONST (EOVERFLOW );
227
+ GET_CONST (EPROCLIM );
228
+ GET_CONST (EPROCUNAVAIL );
229
+ GET_CONST (EPROGMISMATCH );
230
+ GET_CONST (EPROGUNAVAIL );
231
+ GET_CONST (EREMOTE );
232
+ GET_CONST (ERPCMISMATCH );
233
+ GET_CONST (ESTALE );
234
+ GET_CONST (EUSERS );
235
+ #endif
236
+
212
237
#ifdef DARWIN
213
238
GET_CONST (EPWROFF );
214
239
GET_CONST (EDEVERR );
Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ fn test_struct_kevent() {
330
330
assert ! ( expected. filter == actual. filter( ) as type_of_event_filter) ;
331
331
assert ! ( expected. flags == actual. flags( ) . bits( ) ) ;
332
332
assert ! ( expected. fflags == actual. fflags( ) . bits( ) ) ;
333
- assert ! ( expected. data == actual. data( ) ) ;
333
+ assert ! ( expected. data == actual. data( ) as type_of_data ) ;
334
334
assert ! ( expected. udata == actual. udata( ) as type_of_udata) ;
335
335
assert ! ( mem:: size_of:: <libc:: kevent>( ) == mem:: size_of:: <KEvent >( ) ) ;
336
336
}
Original file line number Diff line number Diff line change 3
3
4
4
use libc;
5
5
use { Errno , Error , Result } ;
6
+ #[ cfg( not( target_os = "openbsd" ) ) ]
6
7
use std:: fmt;
8
+ #[ cfg( not( target_os = "openbsd" ) ) ]
7
9
use std:: fmt:: Debug ;
8
10
use std:: mem;
9
11
#[ cfg( any( target_os = "dragonfly" , target_os = "freebsd" ) ) ]
You can’t perform that action at this time.
0 commit comments