Branch: Tag:

2020-05-01

2020-05-01 12:12:28 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: query_mtu() is now guarded by IP_MTU.

IP_MTU seems to be Linux-specific, and I haven't been able
to find corresponding code for other OSes.

Fixes build failures on multiple platforms.

146:   #endif /* HAVE_SYS_UN_H */   /* function(int|void:string) */   FILE_FUNC("query_address",file_query_address, tFunc(tOr(tInt01,tVoid),tStr)) + #ifdef IP_MTU   /* function(:int) */   FILE_FUNC("query_mtu", file_query_mtu, tFunc(tNone, tInt)) -  + #endif   /* function(void|string,void|string:void) */   FILE_FUNC("create",file_create, tFunc(tOr3(tVoid,tInt,tStr) tOr(tVoid,tStr) tOr(tVoid,tInt),tVoid))