[E-devel] [PATCH] e16-epplets: fix build with must
Andrew Savchenko <[email protected]> Mon, 1 Aug 2022 13:05:56 +0300
| Newsgroups | gmane.comp.window-managers.enlightenment.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! The following patch fixes a small problem with building e16-epplets on musl: due to missing <sys/select.h> header struct `fd_set` gets undefined. Looks like this header is indirectly included by other mentioned headers in glibc, but not in musl. This patch is for 0.17 or git HEAD. Original bugreport is here: https://bugs.gentoo.org/show_bug.cgi?id=833163 Best regards, Andrew Savchenko _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
e16-epplets-0.17-musl.patch
(text/x-patch, 1.5 KB)
commit c3dcab92ff903422814573d6315ed2a1417080f6 Author: Andrew Savchenko <[email protected]> Date: Mon Aug 1 12:03:51 2022 +0300 Include <sys/select.h> for fd_set When fd_set is used <sys/select.h> should be included. On glibc it is done implicitly via other headers, on musl it must be explicitly provided. Signed-off-by: Andrew Savchenko <[email protected]> diff --git a/api/epplet.c b/api/epplet.c index b6a7907..b74a4bc 100644 --- a/api/epplet.c +++ b/api/epplet.c @@ -3,6 +3,7 @@ #include <errno.h> #include <fcntl.h> #include <sys/resource.h> +#include <sys/select.h> #include <sys/utsname.h> #include <signal.h> #include <sys/time.h> diff --git a/epplets/E-Pinger.c b/epplets/E-Pinger.c index 7187315..d397063 100644 --- a/epplets/E-Pinger.c +++ b/epplets/E-Pinger.c @@ -32,6 +32,7 @@ #include <errno.h> #include <signal.h> +#include <sys/select.h> #include <sys/wait.h> #include "config.h" diff --git a/epplets/E-SD.c b/epplets/E-SD.c index cd92fa3..d3b6b93 100644 --- a/epplets/E-SD.c +++ b/epplets/E-SD.c @@ -19,6 +19,7 @@ */ #include <esd.h> #include <fcntl.h> +#include <sys/select.h> #include "config.h" #include "epplet.h" diff --git a/epplets/E-ScreenShoot_ftp.c b/epplets/E-ScreenShoot_ftp.c index 377e7ee..ae40ca7 100644 --- a/epplets/E-ScreenShoot_ftp.c +++ b/epplets/E-ScreenShoot_ftp.c @@ -5,6 +5,7 @@ #include <errno.h> #include <fcntl.h> #include <stdarg.h> +#include <sys/select.h> #include "E-ScreenShoot_ftp.h"
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE63ZIHsdeM+1XgNer9lNaM7oe5I0FAmLnpYUACgkQ9lNaM7oe 5I1OgA/+LP0w7yuBIzz71XTa+UQzkWdJZ36OGycEEQowTF8MJjrUvS6rae2PXJn8 m81tA5NGiYaGuSsGXx8wOmTUKwV/Dv88Ts+p7VbzCUhLwTL/PNPDHjwZAyCaPaLD 5IF8mVGBv+3gOZA2olNh+wAw/csJnOgM+NmcpjPPsiSX3fympuEHVlcXBIOemHj3 Q6t/p+ZrLyIHHwu9WuqZVpMBHy4lGVV4MjKliZ35l+bi3zogpNTLv4RKdRWGDAyF Xbobriv7zZkV73vuNME3coMLkzXikpVYC1WTgt+4fwF5Wdu/7QlbS2K9THp74ktD 0KDRdpWSaa0MB0D5hho+WQ+wxywSN/OOFUr4B2M+gLwHoRsgVJvfhYsEfpqjz4aK nrLwKvMHckZxr7JhNBZ4rbsiMLKDKqMKHD43ftjG3wMl4YxFR4B+FcygnoguYMFa 2K7WwDO0eJcyOtwFKzd+bmiBlyQLnVFYmJ9l4nJNbfsm7C4pzsm5Vvxay3NWj95s oYyxpqqtbBpr6kYIZUG6EPK7n6yYHnVTGxyYgR6o1q9GPn/fCBHEVj7xKevq21nA 837Zf7oHKZGhgDx0HnkO/MLaTET/cB+1UxdQrRuFVwF/esstTgA6ROfwQ5QrnRf/ 56Zvw90UcoCK+x3jcopG0KVzEnLuyg7V72nIDQT6fEDKt/mHhMs= =ACau -----END PGP SIGNATURE-----