eriksl / streamproxy

This stream proxy can replace the streamproxy, transtreamproxy and filestreamproxy on VU+ receiver. Care has been taken to always fetch all bufferend data, so the transcoding engine won't crash.
Other
11 stars 14 forks source link

webrequest.cpp: fix build with musl libc #16

Open andrea-adami opened 3 years ago

andrea-adami commented 3 years ago

fix following error:

| ../../git/src/webrequest.cpp:15:10: fatal error: sys/unistd.h: No such file or directory | 15 | #include <sys/unistd.h>

Signed-off-by: Andrea Adami andrea.adami@gmail.com

eriksl commented 3 years ago

Why doesn't musl have this header file?

It may very well be that the code needs declarations from this file.

persianpros commented 3 years ago

@eriksl

Would you please accept this and revert https://github.com/OpenPLi/openpli-oe-core/commit/76b525c67cee8c07ab39299d8f91d23b3a9a7564 ?

andrea-adami commented 3 years ago

Hi, musl libc just doesn't have it. If you check under /usr/include/sys, glibc sys/unistd.g is including unistd.h.

In fact it should be sufficient to include the latter, valid for both libc's. Cheers A.A.