switchbrew / libnx

Library for Switch Homebrew

Home Page:https://switchbrew.github.io/libnx/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to add <sys/uio.h>?

glebm opened this issue · comments

readv and friends from <sys/uio.h> are used by DevilutionX for networking (via asio).

DevilutionX currently does not compile with network support because the <sys/uio.h> is missing. Would it be possible to add it here?

Then we'd be able to play Diablo in cross-platform multiplayer from the Switch!

/cc @AJenbo @rsn8887

After looking into it a bit further, I realize I should have opened this request in a different repo. Is https://github.com/reswitched/newlib the right place for such things?

sys/un.h is also missing.

commented

This repository is indeed the wrong one to request this feature on. Also, "reswitched/newlib" has absolutely nothing to do with devkitPro. The correct newlib we're using in devkitPro toolchains (devkitA64 in our case) is this one: https://github.com/devkitPro/newlib

With that said, there's kind of a limit to the amount of POSIX compatible interfaces we're able to provide, where we really have to see if adding little known interfaces like this one is worth the cost of implementing, supporting and maintaining them.