@@ -1337,16 +1337,20 @@ static const field_descriptor descriptors_in6_pktinfo[] = {
1337
1337
{0 }
1338
1338
};
1339
1339
1340
- static const field_descriptor descriptors_in6_hbh [] = {
1340
+ #if defined(IPV6_HOPOPTS ) && !defined(PHP_WIN32 )
1341
+ static const field_descriptor descriptors_ip6_hbh [] = {
1341
1342
{"nxt" , sizeof ("nxt" ), true, offsetof(struct ip6_hbh , ip6h_nxt ), from_zval_write_uint8 , to_zval_read_uint8 },
1342
1343
{"len" , sizeof ("len" ), true, offsetof(struct ip6_hbh , ip6h_len ), from_zval_write_uint8 , to_zval_read_uint8 },
1343
1344
{0 }
1344
1345
};
1345
- static const field_descriptor descriptors_in6_dest [] = {
1346
+ #endif
1347
+ #if defined(IPV6_DSTOPTS ) && !defined(PHP_WIN32 )
1348
+ static const field_descriptor descriptors_ip6_dest [] = {
1346
1349
{"nxt" , sizeof ("nxt" ), true, offsetof(struct ip6_dest , ip6d_nxt ), from_zval_write_uint8 , to_zval_read_uint8 },
1347
1350
{"len" , sizeof ("len" ), true, offsetof(struct ip6_dest , ip6d_len ), from_zval_write_uint8 , to_zval_read_uint8 },
1348
1351
{0 }
1349
1352
};
1353
+ #endif
1350
1354
1351
1355
void from_zval_write_in6_pktinfo (const zval * container , char * in6_pktinfo_c , ser_context * ctx )
1352
1356
{
@@ -1359,30 +1363,34 @@ void to_zval_read_in6_pktinfo(const char *data, zval *zv, res_context *ctx)
1359
1363
to_zval_read_aggregation (data , zv , descriptors_in6_pktinfo , ctx );
1360
1364
}
1361
1365
1366
+ #if defined(IPV6_HOPOPTS ) && !defined(PHP_WIN32 )
1362
1367
void from_zval_write_ip6_hbh (const zval * container , char * in6_hbh_c , ser_context * ctx )
1363
1368
{
1364
- from_zval_write_aggregation (container , in6_hbh_c , descriptors_in6_hbh , ctx );
1369
+ from_zval_write_aggregation (container , in6_hbh_c , descriptors_ip6_hbh , ctx );
1365
1370
}
1366
1371
1367
1372
void to_zval_read_ip6_hbh (const char * data , zval * zv , res_context * ctx )
1368
1373
{
1369
1374
array_init_size (zv , 2 );
1370
1375
1371
- to_zval_read_aggregation (data , zv , descriptors_in6_hbh , ctx );
1376
+ to_zval_read_aggregation (data , zv , descriptors_ip6_hbh , ctx );
1372
1377
}
1378
+ #endif
1373
1379
1380
+ #if defined(IPV6_DSTOPTS ) && !defined(PHP_WIN32 )
1374
1381
void from_zval_write_ip6_dest (const zval * container , char * in6_dest_c , ser_context * ctx )
1375
1382
{
1376
- from_zval_write_aggregation (container , in6_dest_c , descriptors_in6_dest , ctx );
1383
+ from_zval_write_aggregation (container , in6_dest_c , descriptors_ip6_dest , ctx );
1377
1384
}
1378
1385
1379
1386
void to_zval_read_ip6_dest (const char * data , zval * zv , res_context * ctx )
1380
1387
{
1381
1388
array_init_size (zv , 2 );
1382
1389
1383
- to_zval_read_aggregation (data , zv , descriptors_in6_dest , ctx );
1390
+ to_zval_read_aggregation (data , zv , descriptors_ip6_dest , ctx );
1384
1391
}
1385
1392
#endif
1393
+ #endif
1386
1394
1387
1395
/* CONVERSIONS for struct ucred */
1388
1396
#if defined(SO_PASSCRED ) || defined(LOCAL_CREDS_PERSISTENT ) || defined(LOCAL_CREDS )
0 commit comments